Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
89 CURL *curl;
100 if ((curl = curl_easy_init()) == NULL) {
109 curl_easy_cleanup(curl);
115 test_setopt(curl, CURLOPT_URL, URL);
118 test_setopt(curl, CURLOPT_POST, 1L);
122 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
126 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
129 test_setopt(curl, CURLOPT_INFILE, &pooh);
132 test_setopt(curl, CURLOPT_VERBOSE, 1L);
135 test_setopt(curl, CURLOPT_HEADER, 1L);
138 test_setopt(curl, CURLOPT_HTTPHEADER, slist);
140 test_setopt(curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST);
141 test_setopt(curl, CURLOPT_USERPWD, "foo:bar");
144 test_setopt(curl, CURLOPT_NOPROGRESS, 0L);
145 test_setopt(curl, CURLOPT_PROGRESSFUNCTION, progress_callback);
148 res = curl_easy_perform(curl);
157 curl_easy_cleanup(curl);