Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
28 CURL *curl;
33 curl = curl_easy_init();
34 if(curl) {
35 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com");
36 curl_easy_setopt(curl, CURLOPT_POSTFIELDS, postthis);
40 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(postthis));
43 res = curl_easy_perform(curl);
50 curl_easy_cleanup(curl);