Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
38 size_t amount = nmemb * size; /* Total bytes curl wants */
49 CURL *curl = NULL;
59 curl = curl_easy_init();
60 if(!curl) {
77 test_setopt(curl, CURLOPT_URL, URL);
78 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
79 test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
80 test_setopt(curl, CURLOPT_PROXYHEADER, phl);
81 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_SEPARATE);
82 test_setopt(curl, CURLOPT_POST, 0L);
83 test_setopt(curl, CURLOPT_UPLOAD, 1L);
84 test_setopt(curl, CURLOPT_VERBOSE, 1L);
85 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
86 test_setopt(curl, CURLOPT_HEADER, 1L);
87 test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
88 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
89 test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
90 test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(data));
92 res = curl_easy_perform(curl);
96 curl_easy_cleanup(curl);