Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
133 size_t amount = nmemb * size; /* Total bytes curl wants */
171 CURL *curl;
180 easy_init(curl);
182 test_setopt(curl, CURLOPT_DEBUGFUNCTION, my_trace);
183 test_setopt(curl, CURLOPT_DEBUGDATA, &config);
185 test_setopt(curl, CURLOPT_VERBOSE, 1L);
192 test_setopt(curl, CURLOPT_POST, 1L);
195 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof(databuf));
196 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
199 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
203 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_callback);
206 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
208 test_setopt(curl, CURLOPT_URL, URL);
212 test_setopt(curl, CURLOPT_PROXYAUTH, (long)CURLAUTH_ANY);
214 res = curl_easy_perform(curl);
218 curl_easy_cleanup(curl);