Lines Matching refs:curl
31 static void proxystat(CURL *curl) in proxystat() argument
34 if(!curl_easy_getinfo(curl, CURLINFO_USED_PROXY, &wasproxy)) { in proxystat()
43 CURL *curl; in test() local
51 curl = curl_easy_init(); in test()
52 if(!curl) { in test()
62 test_setopt(curl, CURLOPT_RESOLVE, host); in test()
63 test_setopt(curl, CURLOPT_PROXY, URL); in test()
64 test_setopt(curl, CURLOPT_URL, WITH_PROXY); in test()
65 test_setopt(curl, CURLOPT_NOPROXY, "goingdirect.com"); in test()
66 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
68 res = curl_easy_perform(curl); in test()
70 proxystat(curl); in test()
71 test_setopt(curl, CURLOPT_URL, WITHOUT_PROXY); in test()
72 res = curl_easy_perform(curl); in test()
74 proxystat(curl); in test()
79 curl_easy_cleanup(curl); in test()