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>
94 CURL *curl;
99 curl = curl_easy_init();
100 if(curl) {
102 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
111 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM_ADDR);
118 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
123 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
124 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
125 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
128 res = curl_easy_perform(curl);
138 /* curl will not send the QUIT command until you call cleanup, so you
146 curl_easy_cleanup(curl);