Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
128 size_t amount = nmemb * size; /* Total bytes curl wants */
164 CURL *curl;
172 if((curl = curl_easy_init()) == NULL) {
178 test_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
179 test_setopt(curl, CURLOPT_DEBUGDATA, &config);
181 test_setopt(curl, CURLOPT_VERBOSE, 1L);
188 test_setopt(curl, CURLOPT_POST, 1L);
192 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
196 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof(databuf));
197 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
200 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
203 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_callback);
205 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
207 test_setopt(curl, CURLOPT_URL, URL);
210 test_setopt(curl, CURLOPT_PROXYAUTH, (long)CURLAUTH_ANY);
212 res = curl_easy_perform(curl);
217 curl_easy_cleanup(curl);