Lines Matching refs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
44 static void reset_data(struct cb_data *data, CURL *curl)
46 data->easy_handle = curl;
101 static int perform_and_check_connections(CURL *curl, const char *description,
107 res = curl_easy_perform(curl);
113 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections);
133 CURL *curl = NULL;
141 curl = curl_easy_init();
142 if(!curl) {
148 reset_data(&data, curl);
150 test_setopt(curl, CURLOPT_URL, URL);
151 test_setopt(curl, CURLOPT_POST, 1L);
152 test_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE,
154 test_setopt(curl, CURLOPT_VERBOSE, 1L);
155 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
156 test_setopt(curl, CURLOPT_READDATA, &data);
157 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback);
158 test_setopt(curl, CURLOPT_WRITEDATA, &data);
160 res = perform_and_check_connections(curl,
166 reset_data(&data, curl);
168 res = perform_and_check_connections(curl,
174 test_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 1L);
176 reset_data(&data, curl);
178 res = perform_and_check_connections(curl,
184 reset_data(&data, curl);
186 res = perform_and_check_connections(curl,
196 curl_easy_cleanup(curl);