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>
44 CURL *curl;
48 curl = curl_easy_init();
49 if(curl) {
51 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
55 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
58 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "EXPN");
61 res = curl_easy_perform(curl);
71 /* curl will not send the QUIT command until you call cleanup, so you
77 curl_easy_cleanup(curl);