Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
83 CURL *curl;
93 if ((curl = curl_easy_init()) == NULL) {
99 test_setopt(curl, CURLOPT_URL, URL);
100 test_setopt(curl, CURLOPT_VERBOSE, 1L);
101 test_setopt(curl, CURLOPT_HEADER, 1L);
104 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS);
107 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback);
108 test_setopt(curl, CURLOPT_IOCTLDATA, &counter);
109 test_setopt(curl, CURLOPT_READFUNCTION, readcallback);
110 test_setopt(curl, CURLOPT_READDATA, &counter);
112 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(UPLOADTHIS));
114 test_setopt(curl, CURLOPT_POST, 1L);
115 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
116 test_setopt(curl, CURLOPT_PROXYUSERPWD, libtest_arg3);
117 test_setopt(curl, CURLOPT_PROXYAUTH,
120 res = curl_easy_perform(curl);
124 curl_easy_cleanup(curl);