mirror of
https://github.com/benapetr/stikkit.git
synced 2025-04-26 13:01:08 -05:00
user agent
This commit is contained in:
parent
decacdcf1d
commit
f2a4653f3e
@ -120,6 +120,7 @@ int main(int argc, char *argv[])
|
|||||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback);
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, Stikkit::Configuration::URL.c_str());
|
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_POSTFIELDS, post.c_str());
|
||||||
|
curl_easy_setopt(curl, CURLOPT_USERAGENT, "stikkit");
|
||||||
|
|
||||||
/* Perform the request, res will get the return code */
|
/* Perform the request, res will get the return code */
|
||||||
res = curl_easy_perform(curl);
|
res = curl_easy_perform(curl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user