Home | History | Annotate | Download | only in examples

Lines Matching defs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
30 #include <curl/curl.h>
87 CURL *curl;
94 curl = curl_easy_init();
95 if(curl) {
97 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mail.example.com");
106 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
113 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
118 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
119 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
120 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
123 res = curl_easy_perform(curl);
133 /* curl won't send the QUIT command until you call cleanup, so you should
141 curl_easy_cleanup(curl);