Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 static CURL *curl;
48 res = curl_easy_recv(curl, buffer, 256, &n);
50 res = curl_easy_send(curl, buffer, n, &n);
62 easy_init(curl);
64 easy_setopt(curl, CURLOPT_URL, URL);
65 easy_setopt(curl, CURLOPT_TIMEOUT, (long)7);
66 easy_setopt(curl, CURLOPT_NOSIGNAL, (long)1);
68 easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, progressCallback);
69 easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL);
71 easy_setopt(curl, CURLOPT_NOPROGRESS, (long)0);
73 res = curl_easy_perform(curl);
79 curl_easy_cleanup(curl);