Lines Matching refs:curl
50 CURL *curl = NULL; in test() local
60 curl = curl_easy_init(); in test()
61 if(!curl) { in test()
77 test_setopt(curl, CURLOPT_URL, URL); in test()
78 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
80 test_setopt(curl, CURLOPT_POST, 0L); in test()
81 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
82 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
83 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); in test()
84 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
85 test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite); in test()
86 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
87 test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L); in test()
88 test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(testdata)); in test()
89 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); in test()
91 res = curl_easy_perform(curl); in test()
95 curl_easy_cleanup(curl); in test()