Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
39 CURL *curl;
47 if ((curl = curl_easy_init()) == NULL) {
54 test_setopt(curl, CURLOPT_URL, URL);
57 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) sizeof teststring - 1);
60 test_setopt(curl, CURLOPT_COPYPOSTFIELDS, teststring);
62 test_setopt(curl, CURLOPT_VERBOSE, 1L); /* show verbose for debug */
63 test_setopt(curl, CURLOPT_HEADER, 1L); /* include header */
69 res = curl_easy_perform(curl);
74 curl_easy_cleanup(curl);