Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
31 #include <curl/curl.h>
41 CURL *curl;
44 curl = curl_easy_init();
45 if(curl) {
47 curl_easy_setopt(curl, CURLOPT_USERNAME, "user");
48 curl_easy_setopt(curl, CURLOPT_PASSWORD, "secret");
51 curl_easy_setopt(curl, CURLOPT_URL, "imap://imap.example.com");
54 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "NOOP");
57 res = curl_easy_perform(curl);
65 curl_easy_cleanup(curl);