Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
30 CURL *curl;
38 curl = curl_easy_init();
39 if(!curl) {
46 test_setopt(curl, CURLOPT_URL, URL);
57 test_setopt(curl, CURLOPT_POSTFIELDS, "moo");
58 test_setopt(curl, CURLOPT_POSTFIELDSIZE, 3L);
59 test_setopt(curl, CURLOPT_POST, 1L);
64 test_setopt(curl, CURLOPT_NOBODY, 1L);
66 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */
67 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */
72 res = curl_easy_perform(curl);
77 curl_easy_cleanup(curl);