Lines Matching defs:curl
12 * are also available at https://curl.haxx.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
73 CURL *curl = NULL;
115 curl = curl_easy_init();
116 if(!curl) {
121 test_setopt(curl, CURLOPT_VERBOSE, 1L);
122 test_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, socket_cb);
123 test_setopt(curl, CURLOPT_OPENSOCKETDATA, &client_fd);
124 test_setopt(curl, CURLOPT_SOCKOPTFUNCTION, sockopt_cb);
125 test_setopt(curl, CURLOPT_SOCKOPTDATA, NULL);
126 test_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, closesocket_cb);
127 test_setopt(curl, CURLOPT_CLOSESOCKETDATA, NULL);
128 test_setopt(curl, CURLOPT_VERBOSE, 1L);
129 test_setopt(curl, CURLOPT_HEADER, 1L);
130 test_setopt(curl, CURLOPT_URL, URL);
132 res = curl_easy_perform(curl);
137 curl_easy_cleanup(curl);