Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 CURL *curl;
37 curl = curl_easy_init();
38 if(!curl) {
44 test_setopt(curl, CURLOPT_HEADERDATA, stdout);
45 test_setopt(curl, CURLOPT_WRITEDATA, stdout);
46 test_setopt(curl, CURLOPT_VERBOSE, 1L);
47 test_setopt(curl, CURLOPT_URL, URL);
48 test_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
49 test_setopt(curl, CURLOPT_USERNAME, "user");
50 test_setopt(curl, CURLOPT_PASSWORD, "password");
51 test_setopt(curl, CURLOPT_REDIR_PROTOCOLS_STR, "https");
53 res = curl_easy_perform(curl);
60 curl_easy_cleanup(curl);