Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
39 size_t amount = nmemb * size; /* Total bytes curl wants */
78 CURL *curl = NULL;
89 curl = curl_easy_init();
90 if(!curl) {
102 test_setopt(curl, CURLOPT_URL, URL);
103 test_setopt(curl, CURLOPT_HTTPHEADER, hhl);
104 test_setopt(curl, CURLOPT_UPLOAD, 1L);
105 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
106 test_setopt(curl, CURLOPT_TRAILERFUNCTION, trailers_callback);
107 test_setopt(curl, CURLOPT_TRAILERDATA, NULL);
109 res = curl_easy_perform(curl);
113 curl_easy_cleanup(curl);