From f2a4653f3ef8ba69234aff3c9da200b92f178da2 Mon Sep 17 00:00:00 2001 From: Petr Bena Date: Fri, 27 Mar 2015 12:27:59 -0400 Subject: [PATCH] user agent --- stikkit/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/stikkit/main.cpp b/stikkit/main.cpp index 2366548..d010650 100644 --- a/stikkit/main.cpp +++ b/stikkit/main.cpp @@ -120,6 +120,7 @@ int main(int argc, char *argv[]) curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_URL, Stikkit::Configuration::URL.c_str()); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post.c_str()); + curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit"); /* Perform the request, res will get the return code */ res = curl_easy_perform(curl);