Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
32 #include <curl/curl.h>
89 CURL *curl;
92 curl = curl_easy_init();
93 if(curl) {
99 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
100 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
103 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com/Sent");
108 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
109 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
110 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
115 curl_easy_setopt(curl, CURLOPT_INFILESIZE, infilesize);
118 res = curl_easy_perform(curl);
126 curl_easy_cleanup(curl);