Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
48 static void setupcallbacks(CURL *curl)
50 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket);
51 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket);
63 CURL *curl;
71 if ((curl = curl_easy_init()) == NULL) {
77 test_setopt(curl, CURLOPT_URL, URL);
78 test_setopt(curl, CURLOPT_HEADER, 1L);
82 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config);
83 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb);
84 test_setopt(curl, CURLOPT_VERBOSE, 1L);
87 test_setopt(curl, CURLOPT_FTPPORT, "-");
89 setupcallbacks(curl);
91 res = curl_easy_perform(curl);
95 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ipstr);
104 curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME, &time_namelookup);
105 curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &time_connect);
106 curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &time_pretransfer);
107 curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME,
109 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &time_total);
136 curl_easy_cleanup(curl);