• Home
  • Raw
  • Download

Lines Matching full:curl

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