Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
42 CURL *curl;
51 curl = curl_easy_init();
52 if(!curl) {
67 test_setopt(curl, CURLOPT_CURLU, urlu);
69 test_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
71 test_setopt(curl, CURLOPT_URL, URL);
73 test_setopt(curl, CURLOPT_FOLLOWLOCATION, 0L);
78 res = curl_easy_perform(curl);
80 curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &curlResponseCode);
81 curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &curlRedirectCount);
82 curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effectiveUrl);
83 curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &redirectUrl);
84 test_setopt(curl, CURLOPT_WRITEFUNCTION, writecb);
100 curl_easy_cleanup(curl);