Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
29 CURL *curl;
36 if ((curl = curl_easy_init()) == NULL) {
42 test_setopt(curl, CURLOPT_URL, URL);
43 test_setopt(curl, CURLOPT_HEADER, 1L);
44 test_setopt(curl, CURLOPT_REFERER, "http://example.com/the-moo");
45 test_setopt(curl, CURLOPT_USERAGENT, "the-moo agent next generation");
46 test_setopt(curl, CURLOPT_COOKIE, "name=moo");
47 test_setopt(curl, CURLOPT_VERBOSE, 1L);
49 res = curl_easy_perform(curl);
55 curl_easy_reset(curl);
57 test_setopt(curl, CURLOPT_URL, URL);
58 test_setopt(curl, CURLOPT_HEADER, 1L);
59 test_setopt(curl, CURLOPT_VERBOSE, 1L);
61 res = curl_easy_perform(curl);
67 curl_easy_cleanup(curl);