Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
90 CURL *curl;
101 curl = curl_easy_init();
102 if(!curl) {
111 curl_easy_cleanup(curl);
117 test_setopt(curl, CURLOPT_URL, URL);
120 test_setopt(curl, CURLOPT_POST, 1L);
123 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
126 test_setopt(curl, CURLOPT_READDATA, &pooh);
129 test_setopt(curl, CURLOPT_VERBOSE, 1L);
132 test_setopt(curl, CURLOPT_HEADER, 1L);
135 test_setopt(curl, CURLOPT_HTTPHEADER, slist);
137 test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
138 test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
141 test_setopt(curl, CURLOPT_NOPROGRESS, 0L);
143 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
147 res = curl_easy_perform(curl);
156 curl_easy_cleanup(curl);