Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
55 CURL *curl;
72 /* get a curl handle */
73 curl = curl_easy_init();
74 if(curl) {
76 curl_easy_setopt(curl, CURLOPT_URL, "http://example.com/index.cgi");
79 curl_easy_setopt(curl, CURLOPT_POST, 1L);
82 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
85 curl_easy_setopt(curl, CURLOPT_READDATA, &pooh);
88 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
102 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
109 curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, pooh.sizeleft);
125 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, chunk);
132 res = curl_easy_perform(curl);
139 curl_easy_cleanup(curl);