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>
46 CURL *curl;
49 curl = curl_easy_init();
50 if(curl) {
51 curl_easy_setopt(curl, CURLOPT_URL, "wss://example.com");
53 curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, writecb);
55 curl_easy_setopt(curl, CURLOPT_WRITEDATA, curl);
58 res = curl_easy_perform(curl);
65 curl_easy_cleanup(curl);