Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
25 #include <curl/curl.h>
54 CURL *curl;
63 curl = curl_easy_init();
64 if(curl) {
66 curl_easy_setopt(curl, CURLOPT_URL, "http://www.example.org/");
69 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
72 curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk);
76 curl_easy_setopt(curl, CURLOPT_USERAGENT, "libcurl-agent/1.0");
78 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
82 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
85 res = curl_easy_perform(curl);
102 curl_easy_cleanup(curl);