Lines Matching defs:curl
12 * are also available at http://curl.haxx.se/docs/copyright.html.
52 CURL *curl;
65 if ((curl = curl_easy_init()) == NULL) {
72 test_setopt(curl, CURLOPT_URL, URL);
75 test_setopt(curl, CURLOPT_POST, 1L);
79 test_setopt(curl, CURLOPT_TRANSFERTEXT, 1L);
83 test_setopt(curl, CURLOPT_POSTFIELDSIZE, (long)pooh.sizeleft);
86 test_setopt(curl, CURLOPT_READFUNCTION, read_callback);
89 test_setopt(curl, CURLOPT_INFILE, &pooh);
92 test_setopt(curl, CURLOPT_VERBOSE, 1L);
95 test_setopt(curl, CURLOPT_HEADER, 1L);
98 res = curl_easy_perform(curl);
103 curl_easy_cleanup(curl);