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 */
50 CURL *curl = NULL;
60 curl = curl_easy_init();
61 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_POST, 0L);
81 test_setopt(curl, CURLOPT_UPLOAD, 1L);
82 test_setopt(curl, CURLOPT_VERBOSE, 1L);
83 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
84 test_setopt(curl, CURLOPT_HEADER, 1L);
85 test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite);
86 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
87 test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L);
88 test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(data));
89 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED);
91 res = curl_easy_perform(curl);
95 curl_easy_cleanup(curl);