Home | History | Annotate | Download | only in libtest

Lines Matching defs:curl

12  * are also available at https://curl.haxx.se/docs/copyright.html.
60 CURL *curl;
71 if((curl = curl_easy_init()) == NULL) {
80 curl_easy_cleanup(curl);
86 test_setopt(curl, CURLOPT_URL, URL);
89 test_setopt(curl, CURLOPT_POST, 1L);
93 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
97 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
100 test_setopt(curl, CURLOPT_READDATA, &pooh);
103 test_setopt(curl, CURLOPT_VERBOSE, 1L);
106 test_setopt(curl, CURLOPT_HEADER, 1L);
109 test_setopt(curl, CURLOPT_HTTPHEADER, slist);
112 test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
113 test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
117 res = curl_easy_perform(curl);
126 curl_easy_cleanup(curl);