Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
62 CURL *curl;
72 curl = curl_easy_init();
73 if(!curl) {
94 test_setopt(curl, CURLOPT_URL, URL);
95 test_setopt(curl, CURLOPT_HTTPHEADER, headerlist);
96 test_setopt(curl, CURLOPT_POST, 1L);
97 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)POSTLEN);
98 test_setopt(curl, CURLOPT_VERBOSE, 1L);
99 test_setopt(curl, CURLOPT_HEADER, 1L);
100 test_setopt(curl, CURLOPT_READFUNCTION, myreadfunc);
102 res = curl_easy_perform(curl);
106 curl_easy_cleanup(curl);