Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
51 CURL *curl;
59 if ((curl = curl_easy_init()) == NULL) {
66 test_setopt(curl, CURLOPT_URL, URL);
69 test_setopt(curl, CURLOPT_POST, 1L);
73 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
77 test_setopt(curl, CURLOPT_POSTFIELDSIZE, data_size);
78 test_setopt(curl, CURLOPT_POSTFIELDS, data);
81 test_setopt(curl, CURLOPT_NOPROGRESS, 0L);
82 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
87 test_setopt(curl, CURLOPT_VERBOSE, 1L);
90 test_setopt(curl, CURLOPT_HEADER, 1L);
93 res = curl_easy_perform(curl);
98 curl_easy_cleanup(curl);