Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 #include <curl/curl.h>
37 CURL *curl;
46 CURL *curl = myp->curl;
49 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &curtime);
72 CURL *curl;
76 curl = curl_easy_init();
77 if(curl) {
79 prog.curl = curl;
81 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/");
83 curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, xferinfo);
85 curl_easy_setopt(curl, CURLOPT_XFERINFODATA, &prog);
87 curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
88 res = curl_easy_perform(curl);
94 curl_easy_cleanup(curl);