Lines Matching refs:CURL
12 * are also available at https://curl.haxx.se/docs/copyright.html.
27 #include <curl/curl.h>
33 CURL *curl;
51 curl = curl_easy_init();
52 if(curl) {
54 curl_easy_setopt(curl, CURLOPT_URL,
55 "file:///home/dast/src/curl/debug/new");
58 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
61 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
64 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
68 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
70 res = curl_easy_perform(curl);
79 curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &speed_upload);
80 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &total_time);
87 curl_easy_cleanup(curl);