Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
66 CURL *curl;
77 curl = curl_easy_init();
78 if(!curl) {
87 curl_easy_cleanup(curl);
93 test_setopt(curl, CURLOPT_URL, URL);
96 test_setopt(curl, CURLOPT_POST, 1L);
99 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
102 test_setopt(curl, CURLOPT_READDATA, &pooh);
105 test_setopt(curl, CURLOPT_VERBOSE, 1L);
108 test_setopt(curl, CURLOPT_HEADER, 1L);
111 test_setopt(curl, CURLOPT_HTTPHEADER, slist);
114 test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
115 test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
119 res = curl_easy_perform(curl);
128 curl_easy_cleanup(curl);