Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
46 #include <curl/curl.h>
115 CURL *curl;
136 /* get a curl handle */
137 curl = curl_easy_init();
138 if(curl) {
140 curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
143 curl_easy_setopt(curl, CURLOPT_READDATA, (void*)hd);
146 curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, my_ioctl);
149 curl_easy_setopt(curl, CURLOPT_IOCTLDATA, (void*)hd);
152 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L) ;
156 curl_easy_setopt(curl,CURLOPT_URL, url);
160 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
166 curl_easy_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_ANY);
169 curl_easy_setopt(curl, CURLOPT_USERPWD, "user:password");
172 res = curl_easy_perform(curl);
179 curl_easy_cleanup(curl);