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
234 curl = curl_easy_init(); in test()
235 if(!curl) { in test()
242 test_setopt(curl, CURLOPT_SHARE, share); in test()
244 test_setopt(curl, CURLOPT_COOKIELIST, in test()
248 test_setopt(curl, CURLOPT_COOKIELIST, "ALL"); in test()
250 test_setopt(curl, CURLOPT_COOKIELIST, "Set-Cookie: session=elephants"); in test()
252 test_setopt(curl, CURLOPT_COOKIELIST, in test()
256 test_setopt(curl, CURLOPT_COOKIELIST, "SESS"); in test()
258 curl_easy_cleanup(curl); in test()
280 curl = curl_easy_init(); in test()
281 if(!curl) { in test()
290 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
291 test_setopt(curl, CURLOPT_URL, url); in test()
293 test_setopt(curl, CURLOPT_SHARE, share); in test()
295 test_setopt(curl, CURLOPT_COOKIEJAR, JAR); in test()
297 test_setopt(curl, CURLOPT_COOKIELIST, "FLUSH"); in test()
300 curl_easy_perform(curl); in test()
303 curl_easy_cleanup(curl); in test()
308 curl = curl_easy_init(); in test()
309 if(!curl) { in test()
317 test_setopt(curl, CURLOPT_HTTPHEADER, headers); in test()
318 test_setopt(curl, CURLOPT_URL, url); in test()
320 test_setopt(curl, CURLOPT_SHARE, share); in test()
322 test_setopt(curl, CURLOPT_COOKIELIST, "ALL"); in test()
324 test_setopt(curl, CURLOPT_COOKIEFILE, JAR); in test()
326 test_setopt(curl, CURLOPT_COOKIELIST, "RELOAD"); in test()
328 code = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in test()
364 curl_easy_cleanup(curl); in test()