Lines Matching full:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
37 CURL *easy_handle;
44 static void reset_data(struct cb_data *data, CURL *curl) in reset_data() argument
46 data->easy_handle = curl; in reset_data()
101 static int perform_and_check_connections(CURL *curl, const char *description, in perform_and_check_connections() argument
107 res = curl_easy_perform(curl); in perform_and_check_connections()
113 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections); in perform_and_check_connections()
133 CURL *curl = NULL; in test() local
142 curl = curl_easy_init(); in test()
143 if(!curl) { in test()
149 reset_data(&data, curl); in test()
151 test_setopt(curl, CURLOPT_URL, URL); in test()
152 test_setopt(curl, CURLOPT_POST, 1L); in test()
153 test_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, in test()
155 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
156 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
157 test_setopt(curl, CURLOPT_READDATA, &data); in test()
158 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); in test()
159 test_setopt(curl, CURLOPT_WRITEDATA, &data); in test()
161 result = perform_and_check_connections(curl, in test()
168 reset_data(&data, curl); in test()
170 result = perform_and_check_connections(curl, in test()
177 test_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 1L); in test()
179 reset_data(&data, curl); in test()
181 result = perform_and_check_connections(curl, in test()
188 reset_data(&data, curl); in test()
190 result = perform_and_check_connections(curl, in test()
201 curl_easy_cleanup(curl); in test()