Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 #include <curl/curl.h>
35 CURL *curl;
49 curl = curl_easy_init();
50 if(curl) {
52 curl_easy_setopt(curl, CURLOPT_URL,
53 "file:///home/dast/src/curl/debug/new");
56 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
59 curl_easy_setopt(curl, CURLOPT_READDATA, fd);
62 curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE,
66 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
68 res = curl_easy_perform(curl);
76 curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD_T, &speed_upload);
77 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &total_time);
85 curl_easy_cleanup(curl);