Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
36 CURL *curl;
44 curl = curl_easy_init();
45 if(!curl) {
52 test_setopt(curl, CURLOPT_URL, URL);
55 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof(teststring));
58 test_setopt(curl, CURLOPT_COPYPOSTFIELDS, teststring);
60 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */
61 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */
68 handle2 = curl_easy_duphandle(curl);
69 curl_easy_cleanup(curl);
71 curl = handle2;
75 res = curl_easy_perform(curl);
80 curl_easy_cleanup(curl);