Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
58 CURL *curl;
81 curl = curl_easy_init();
82 if(!curl) {
89 test_setopt(curl, CURLOPT_URL, URL);
92 test_setopt(curl, CURLOPT_POST, 1L);
95 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
98 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
101 test_setopt(curl, CURLOPT_READDATA, &pooh);
104 test_setopt(curl, CURLOPT_VERBOSE, 1L);
107 test_setopt(curl, CURLOPT_HEADER, 1L);
110 /* test_setopt(curl, CURLOPT_FAILONERROR, 1L); */
114 res = curl_easy_perform(curl);
119 curl_easy_cleanup(curl);