Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
24 #include <curl/curl.h>
81 CURL *curl;
88 curl = curl_easy_init();
89 if(curl) {
91 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
92 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
98 curl_easy_setopt(curl, CURLOPT_URL, "smtp://mainserver.example.net:587");
105 curl_easy_setopt(curl, CURLOPT_USE_SSL, (long)CURLUSESSL_ALL);
110 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
111 * curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
118 curl_easy_setopt(curl, CURLOPT_CAINFO, "/path/to/certificate.pem");
126 curl_easy_setopt(curl, CURLOPT_MAIL_FROM, FROM);
133 curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, recipients);
138 curl_easy_setopt(curl, CURLOPT_READFUNCTION, payload_source);
139 curl_easy_setopt(curl, CURLOPT_READDATA, &upload_ctx);
140 curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L);
145 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
148 res = curl_easy_perform(curl);
159 curl_easy_cleanup(curl);