Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
55 CURL *curl;
63 curl = curl_easy_init();
64 if(!curl) {
71 test_setopt(curl, CURLOPT_URL, URL);
74 test_setopt(curl, CURLOPT_POST, 1L);
77 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)data_size);
78 test_setopt(curl, CURLOPT_POSTFIELDS, data);
82 test_setopt(curl, CURLOPT_NOPROGRESS, 0L);
83 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
87 test_setopt(curl, CURLOPT_VERBOSE, 1L);
90 test_setopt(curl, CURLOPT_HEADER, 1L);
93 res = curl_easy_perform(curl);
98 curl_easy_cleanup(curl);