Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
50 static void setupcallbacks(CURL *curl)
52 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket);
53 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket);
65 CURL *curl;
73 curl = curl_easy_init();
74 if(!curl) {
80 test_setopt(curl, CURLOPT_URL, URL);
81 test_setopt(curl, CURLOPT_HEADER, 1L);
85 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config);
86 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
87 test_setopt(curl, CURLOPT_VERBOSE, 1L);
90 test_setopt(curl, CURLOPT_FTPPORT, "-");
92 setupcallbacks(curl);
94 res = curl_easy_perform(curl);
97 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ipstr);
107 curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME_T, &time_namelookup);
108 curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME_T, &time_connect);
109 curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME_T,
111 curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME_T,
113 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &time_total);
154 curl_easy_cleanup(curl);