Lines Matching full:curl
12 * are also available at https://curl.haxx.se/docs/copyright.html.
35 CURL *easy_handle;
42 static void reset_data(struct cb_data *data, CURL *curl) in reset_data() argument
44 data->easy_handle = curl; in reset_data()
99 static int perform_and_check_connections(CURL *curl, const char *description, in perform_and_check_connections() argument
105 res = curl_easy_perform(curl); in perform_and_check_connections()
111 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &connections); in perform_and_check_connections()
131 CURL *curl = NULL; in test() local
139 curl = curl_easy_init(); in test()
140 if(curl == NULL) { in test()
146 reset_data(&data, curl); in test()
148 test_setopt(curl, CURLOPT_URL, URL); in test()
149 test_setopt(curl, CURLOPT_POST, 1L); in test()
150 test_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, in test()
152 test_setopt(curl, CURLOPT_VERBOSE, 1L); in test()
153 test_setopt(curl, CURLOPT_READFUNCTION, read_callback); in test()
154 test_setopt(curl, CURLOPT_READDATA, &data); in test()
155 test_setopt(curl, CURLOPT_WRITEFUNCTION, write_callback); in test()
156 test_setopt(curl, CURLOPT_WRITEDATA, &data); in test()
158 res = perform_and_check_connections(curl, in test()
164 reset_data(&data, curl); in test()
166 res = perform_and_check_connections(curl, in test()
172 test_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 1L); in test()
174 reset_data(&data, curl); in test()
176 res = perform_and_check_connections(curl, in test()
182 reset_data(&data, curl); in test()
184 res = perform_and_check_connections(curl, in test()
194 curl_easy_cleanup(curl); in test()