Lines Matching refs:curl
48 static void setupcallbacks(CURL *curl) in setupcallbacks() argument
50 curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, tst_opensocket); in setupcallbacks()
51 curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, tst_closesocket); in setupcallbacks()
63 CURL *curl; in test() local
71 if((curl = curl_easy_init()) == NULL) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
82 test_setopt(curl, CURLOPT_DEBUGDATA, &libtest_debug_config); in test()
83 test_setopt(curl, CURLOPT_DEBUGFUNCTION, libtest_debug_cb); in test()
84 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
87 test_setopt(curl, CURLOPT_FTPPORT, "-"); in test()
89 setupcallbacks(curl); in test()
91 res = curl_easy_perform(curl); in test()
94 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &ipstr); in test()
104 curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME, &time_namelookup); in test()
105 curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &time_connect); in test()
106 curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &time_pretransfer); in test()
107 curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, in test()
109 curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &time_total); in test()
137 curl_easy_cleanup(curl); in test()