Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
78 CURL *curl;
88 curl = curl_easy_init();
89 if(!curl) {
95 test_setopt(curl, CURLOPT_URL, URL);
96 test_setopt(curl, CURLOPT_VERBOSE, 1L);
97 test_setopt(curl, CURLOPT_HEADER, 1L);
100 test_setopt(curl, CURLOPT_POSTFIELDS, UPLOADTHIS);
104 test_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctlcallback);
105 test_setopt(curl, CURLOPT_IOCTLDATA, &counter);
107 test_setopt(curl, CURLOPT_READFUNCTION, readcallback);
108 test_setopt(curl, CURLOPT_READDATA, &counter);
111 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)strlen(UPLOADTHIS));
113 test_setopt(curl, CURLOPT_POST, 1L);
114 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
115 test_setopt(curl, CURLOPT_PROXYUSERPWD, libtest_arg3);
116 test_setopt(curl, CURLOPT_PROXYAUTH,
119 res = curl_easy_perform(curl);
123 curl_easy_cleanup(curl);