Lines Matching defs:curl
12 * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
86 static int onetest(CURL *curl, const char *url, const struct testparams *p,
97 test_setopt(curl, CURLOPT_URL, urlbuf);
98 test_setopt(curl, CURLOPT_VERBOSE, 1L);
99 test_setopt(curl, CURLOPT_RESUME_FROM, (p->flags & F_RESUME)? 3: 0);
100 test_setopt(curl, CURLOPT_RANGE, !(p->flags & F_RESUME)?
102 test_setopt(curl, CURLOPT_FAILONERROR, (p->flags & F_FAIL)? 1: 0);
104 res = curl_easy_perform(curl);
137 CURL *curl;
147 curl = curl_easy_init();
148 if(!curl) {
154 test_setopt(curl, CURLOPT_WRITEFUNCTION, writedata);
159 status |= onetest(curl, URL, params + i, i);
160 curl_easy_cleanup(curl);
169 curl_easy_cleanup(curl);