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
141 curl = curl_easy_init(); in test()
142 if(!curl) { in test()
148 reset_data(&data, curl); in test()
150 test_setopt(curl, CURLOPT_URL, URL); in test()
151 test_setopt(curl, CURLOPT_POST, 1L); in test()
152 test_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, in test()
154 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
155 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
156 test_setopt(curl, CURLOPT_READDATA, &data); in test()
157 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); in test()
158 test_setopt(curl, CURLOPT_WRITEDATA, &data); in test()
160 res = perform_and_check_connections(curl, in test()
166 reset_data(&data, curl); in test()
168 res = perform_and_check_connections(curl, in test()
174 test_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 1L); in test()
176 reset_data(&data, curl); in test()
178 res = perform_and_check_connections(curl, in test()
184 reset_data(&data, curl); in test()
186 res = perform_and_check_connections(curl, in test()
196 curl_easy_cleanup(curl); in test()