Lines Matching refs:curl

12  * are also available at https://curl.se/docs/copyright.html.
21 * SPDX-License-Identifier: curl
135 CURL *curl;
137 curl = curl_easy_init();
138 if(!curl) {
144 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
145 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
146 curl_easy_setopt(curl, CURLOPT_URL, tdata->url);
147 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "");
149 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share);
152 code = curl_easy_perform(curl);
160 curl_easy_cleanup(curl);
182 CURL *curl;
237 curl = curl_easy_init();
238 if(!curl) {
245 test_setopt(curl, CURLOPT_SHARE, share);
247 test_setopt(curl, CURLOPT_COOKIELIST,
251 test_setopt(curl, CURLOPT_COOKIELIST, "ALL");
253 test_setopt(curl, CURLOPT_COOKIELIST, "Set-Cookie: session=elephants");
255 test_setopt(curl, CURLOPT_COOKIELIST,
259 test_setopt(curl, CURLOPT_COOKIELIST, "SESS");
261 curl_easy_cleanup(curl);
283 curl = curl_easy_init();
284 if(!curl) {
293 test_setopt(curl, CURLOPT_HTTPHEADER, headers);
294 test_setopt(curl, CURLOPT_URL, url);
296 test_setopt(curl, CURLOPT_SHARE, share);
298 test_setopt(curl, CURLOPT_COOKIEJAR, JAR);
300 test_setopt(curl, CURLOPT_COOKIELIST, "FLUSH");
303 curl_easy_perform(curl);
306 curl_easy_cleanup(curl);
311 curl = curl_easy_init();
312 if(!curl) {
320 test_setopt(curl, CURLOPT_HTTPHEADER, headers);
321 test_setopt(curl, CURLOPT_URL, url);
323 test_setopt(curl, CURLOPT_SHARE, share);
325 test_setopt(curl, CURLOPT_COOKIELIST, "ALL");
327 test_setopt(curl, CURLOPT_COOKIEFILE, JAR);
329 test_setopt(curl, CURLOPT_COOKIELIST, "RELOAD");
331 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies);
367 curl_easy_cleanup(curl);