Lines Matching refs:curl
133 CURL *curl; in fire() local
136 if ((curl = curl_easy_init()) == NULL) { in fire()
142 curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); in fire()
143 curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers); in fire()
144 curl_easy_setopt(curl, CURLOPT_URL, tdata->url); in fire()
146 curl_easy_setopt(curl, CURLOPT_SHARE, tdata->share); in fire()
149 code = curl_easy_perform(curl); in fire()
156 curl_easy_cleanup(curl); in fire()
178 CURL *curl; in test() local
232 if ((curl = curl_easy_init()) == NULL) { in test()
239 test_setopt( curl, CURLOPT_SHARE, share ); in test()
241 test_setopt( curl, CURLOPT_COOKIELIST, in test()
245 test_setopt( curl, CURLOPT_COOKIELIST, "ALL" ); in test()
247 test_setopt( curl, CURLOPT_COOKIELIST, "Set-Cookie: session=elephants" ); in test()
249 test_setopt( curl, CURLOPT_COOKIELIST, in test()
253 test_setopt( curl, CURLOPT_COOKIELIST, "SESS" ); in test()
255 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()
363 curl_easy_cleanup( curl ); in test()