Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 CURL *curl;
38 curl = curl_easy_init();
39 if(!curl) {
45 test_setopt(curl, CURLOPT_URL, URL);
46 test_setopt(curl, CURLOPT_HEADER, 1L);
47 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo");
48 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation");
49 test_setopt(curl, CURLOPT_COOKIE, "name=moo");
50 test_setopt(curl, CURLOPT_VERBOSE, 1L);
52 res = curl_easy_perform(curl);
58 curl_easy_reset(curl);
60 test_setopt(curl, CURLOPT_URL, URL);
61 test_setopt(curl, CURLOPT_HEADER, 1L);
62 test_setopt(curl, CURLOPT_VERBOSE, 1L);
64 res = curl_easy_perform(curl);
70 curl_easy_cleanup(curl);