Lines Matching refs:curl
133 CURL *curl; in fire() local
136 curl = curl_easy_init(); in fire()
137 if(!curl) { in fire()
143 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in fire()
144 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in fire()
145 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire()
147 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
150 code = curl_easy_perform(curl); in fire()
157 curl_easy_cleanup(curl); in fire()
179 CURL *curl; in test() local
233 if((curl = curl_easy_init()) == NULL) { in test()
240 test_setopt(curl, CURLOPT_SHARE, share); in test()
242 test_setopt(curl, CURLOPT_COOKIELIST, in test()
246 test_setopt(curl, CURLOPT_COOKIELIST, "ALL"); in test()
248 test_setopt(curl, CURLOPT_COOKIELIST, "Set-Cookie: session=elephants"); in test()
250 test_setopt(curl, CURLOPT_COOKIELIST, in test()
254 test_setopt(curl, CURLOPT_COOKIELIST, "SESS"); in test()
256 curl_easy_cleanup(curl); in test()
278 if((curl = curl_easy_init()) == NULL) { in test()
287 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
288 test_setopt(curl, CURLOPT_URL, url); in test()
290 test_setopt(curl, CURLOPT_SHARE, share); in test()
292 test_setopt(curl, CURLOPT_COOKIEJAR, JAR); in test()
294 test_setopt(curl, CURLOPT_COOKIELIST, "FLUSH"); in test()
297 curl_easy_perform(curl); in test()
300 curl_easy_cleanup(curl); in test()
305 if((curl = curl_easy_init()) == NULL) { in test()
313 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
314 test_setopt(curl, CURLOPT_URL, url); in test()
316 test_setopt(curl, CURLOPT_SHARE, share); in test()
318 test_setopt(curl, CURLOPT_COOKIELIST, "ALL"); in test()
320 test_setopt(curl, CURLOPT_COOKIEFILE, JAR); in test()
322 test_setopt(curl, CURLOPT_COOKIELIST, "RELOAD"); in test()
324 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in test()
360 curl_easy_cleanup(curl); in test()