Lines Matching full: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 */ in read_callback()
51 CURL *curl = NULL; in test() local
61 curl = curl_easy_init(); in test()
62 if(!curl) { in test()
74 test_setopt(curl, CURLOPT_URL, URL); in test()
75 test_setopt(curl, CURLOPT_PROXY, libtest_arg2); in test()
76 test_setopt(curl, CURLOPT_HTTPHEADER, hhl); in test()
77 test_setopt(curl, CURLOPT_PROXYHEADER, hhl); in test()
78 test_setopt(curl, CURLOPT_HEADEROPT, CURLHEADER_UNIFIED); in test()
79 test_setopt(curl, CURLOPT_POST, 0L); in test()
80 test_setopt(curl, CURLOPT_UPLOAD, 1L); in test()
81 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
82 test_setopt(curl, CURLOPT_PROXYTYPE, CURLPROXY_HTTP); in test()
83 test_setopt(curl, CURLOPT_HEADER, 1L); in test()
84 test_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite); in test()
85 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
86 test_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 1L); in test()
87 test_setopt(curl, CURLOPT_INFILESIZE, (long)strlen(data)); in test()
89 res = curl_easy_perform(curl); in test()
93 curl_easy_cleanup(curl); in test()