Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
29 #include <curl/curl.h>
33 CURL *curl;
36 curl = curl_easy_init();
37 if(curl) {
38 curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
39 curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
42 curl_easy_setopt(curl, CURLOPT_REQUEST_TARGET, "*");
46 curl_easy_setopt(curl, CURLOPT_QUICK_EXIT, 1L);
49 res = curl_easy_perform(curl);
56 curl_easy_cleanup(curl);