Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
54 CURL *curl;
67 curl = curl_easy_init();
68 if(!curl) {
75 test_setopt(curl, CURLOPT_URL, URL);
78 test_setopt(curl, CURLOPT_POST, 1L);
81 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
84 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
87 test_setopt(curl, CURLOPT_READDATA, &pooh);
90 test_setopt(curl, CURLOPT_VERBOSE, 1L);
93 test_setopt(curl, CURLOPT_HEADER, 1L);
96 res = curl_easy_perform(curl);
101 curl_easy_cleanup(curl);