Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
23 #include <curl/curl.h>
29 CURL *curl;
47 curl = curl_easy_init();
48 if(curl) {
50 curl_easy_setopt(curl, CURLOPT_URL,
51 "file:///home/dast/src/curl/debug/new");
54 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
57 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
60 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
64 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
66 res = curl_easy_perform(curl);
75 curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
76 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
83 curl_easy_cleanup(curl);