Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
46 CURL *curl;
55 curl = curl_easy_init();
56 if(!curl) {
63 test_setopt(curl, CURLOPT_URL, URL);
66 test_setopt(curl, CURLOPT_NOPROGRESS, 0L);
68 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
72 test_setopt(curl, CURLOPT_VERBOSE, 1L);
75 test_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
78 test_setopt(curl, CURLOPT_HEADER, 1L);
81 res = curl_easy_perform(curl);
86 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD,
99 curl_easy_cleanup(curl);