Lines Matching refs:curl
13 * are also available at https://curl.se/docs/copyright.html.
22 * SPDX-License-Identifier: curl
39 size_t amount = nmemb * size; /* Total bytes curl wants */
51 CURL *curl = NULL;
61 curl = curl_easy_init();
62 if(!curl) {
74 test_setopt(curl, CURLOPT_URL, URL);
75 test_setopt(curl, CURLOPT_PROXY, libtest_arg2);
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
77 test_setopt(curl, CURLOPT_PROXYHEADER, hhl);
78 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
79 test_setopt(curl, CURLOPT_POST, 0L);
80 test_setopt(curl, CURLOPT_UPLOAD, 1L);
81 test_setopt(curl, CURLOPT_VERBOSE, 1L);
82 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
83 test_setopt(curl, CURLOPT_HEADER, 1L);
84 test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
85 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
86 test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
87 test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(data));
89 res = curl_easy_perform(curl);
93 curl_easy_cleanup(curl);