Home
last modified time | relevance | path

Searched refs:cookies (Results 1 – 25 of 103) sorted by relevance

12345

/curl/docs/libcurl/opts/
H A DCURLINFO_COOKIELIST.md18 CURLINFO_COOKIELIST - get all known cookies
26 struct curl_slist **cookies);
32 cookies curl knows (expired ones, too). Do not forget to call
34 cookies (cookies for the handle have not been enabled or simply none have been
58 /* extract all known cookies */
59 struct curl_slist *cookies = NULL;
61 if(!res && cookies) {
62 /* a linked list of cookies in cookie file format */
63 struct curl_slist *each = cookies;
68 /* we must free these cookies when we are done */
[all …]
H A DCURLOPT_COOKIESESSION.md31 to ignore all cookies it is about to load that are "session cookies" from the
32 previous session. By default, libcurl always loads all cookies, independent if
33 they are session cookies or not. Session cookies are cookies without expiry
57 /* new "session", do not load session cookies */
60 /* get the (non session) cookies from this file */
61 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
H A DCURLOPT_COOKIELIST.md19 CURLOPT_COOKIELIST - add to or manipulate cookies held in memory
38 We strongly advice against loading cookies from an HTTP header file, as that
55 erases all cookies held in memory
59 erases all session cookies held in memory
63 writes all known cookies to the file specified by CURLOPT_COOKIEJAR(3)
67 loads all cookies from the files specified by CURLOPT_COOKIEFILE(3)
98 /* The list of cookies in cookies.txt are not be imported until right
107 may have added, deleted or modified cookies by then. The cookies that
112 curl_easy_perform(curl); /* cookies imported from cookies.txt */
114 curl_easy_cleanup(curl); /* cookies exported to cookies.txt */
[all …]
H A DCURLOPT_COOKIEJAR.md18 CURLOPT_COOKIEJAR - filename to store cookies to
31 internally known cookies to the specified file when curl_easy_cleanup(3) is
32 called. If no cookies are kept in memory at that time, no file is created.
33 Specify "-" as filename to instead have the cookies written to stdout. Using
34 this option also enables cookies for this session, so if you for example
35 follow a redirect it makes matching cookies get sent accordingly.
37 Note that libcurl does not read any cookies from the cookie jar specified with
38 this option. To read cookies from a file, use CURLOPT_COOKIEFILE(3).
71 /* export cookies to this file when closing the handle */
72 curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "/tmp/cookies.txt");
[all …]
H A DCURLOPT_COOKIEFILE.md18 CURLOPT_COOKIEFILE - filename to read cookies from
35 It also enables the cookie engine, making libcurl parse and send cookies on
39 without reading any initial cookies. If you tell libcurl the filename is "-"
42 This option only **reads** cookies. To make libcurl write cookies to file,
45 If you read cookies from a plain HTTP headers file and it does not specify a
54 If you use this option multiple times, you add more files to read cookies
56 list of files to read cookies from.
81 /* get cookies from an existing file */
82 curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "/tmp/cookies.txt");
94 online here: https://curl.se/docs/http-cookies.html
/curl/docs/cmdline-opts/
H A Djunk-session-cookies.md4 Long: junk-session-cookies
6 Help: Ignore session cookies read from file
15 - --junk-session-cookies -b cookies.txt $URL
18 # `--junk-session-cookies`
20 When curl is told to read cookies from a given file, this option makes it
21 discard all "session cookies". This has the same effect as if a new session is
22 started. Typical browsers discard session cookies when they are closed down.
H A Dcookie-jar.md8 Help: Save cookies to <filename> after operation
14 - junk-session-cookies
22 Specify to which file you want curl to write all cookies after a completed
23 operation. Curl writes all cookies from its in-memory cookie storage to the
24 given file at the end of operations. Even if no cookies are known, a file is
25 created so that it removes any formerly existing cookies from the file. The
27 minus, "-", the cookies are written to stdout.
29 The file specified with --cookie-jar is only used for output. No cookies are
30 read from the file. To read cookies, use the --cookie option. Both options
34 and use cookies. The --cookie option also activates it.
H A Dcookie.md8 Help: Send cookies from string/load from file
14 - junk-session-cookies
29 given a set of specific cookies, curl populates its cookie header with this
36 cookie engine which makes curl record incoming cookies, which may be handy if
42 activates the cookie engine without any cookies.
44 The file format of the file to read cookies from should be plain HTTP headers
47 The file specified with --cookie is only used as input. No cookies are written
48 to that file. To store cookies, use the --cookie-jar option.
55 Users often want to both read cookies from a file and write updated cookies
61 allowed to have cookies. If curl is *not* built with PSL support, it has no
[all …]
/curl/tests/data/
H A Dtest11516 cookies
13 # reject cookies with too long name (instead of capping)
39 HTTP with too long cookies
42 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/cookies%TESTNUMBER.txt
45 cookies
58 <file name="%LOGDIR/cookies%TESTNUMBER.txt" mode="text">
60 # https://curl.se/docs/http-cookies.html
H A Dtest11616 cookies
31 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/cookies%TESTNUMBER.txt
34 cookies
47 <file name="%LOGDIR/cookies%TESTNUMBER.txt" mode="text">
49 # https://curl.se/docs/http-cookies.html
H A Dtest11556 cookies
31 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -c %LOGDIR/cookies%TESTNUMBER.txt
34 cookies
47 <file name="%LOGDIR/cookies%TESTNUMBER.txt" mode="text">
49 # https://curl.se/docs/http-cookies.html
H A Dtest19035 cookies
36 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER %LOGDIR/cookies%TESTNUMBER %LOGDIR/cookiesout%TESTNUMB…
39 cookies
41 <file name="%LOGDIR/cookies%TESTNUMBER" mode="text">
43 # https://curl.se/docs/http-cookies.html
55 # https://curl.se/docs/http-cookies.html
H A Dtest9776 cookies
30 cookies
40 -x http://%HOSTIP:%HTTPPORT http://firsthost.me. -c %LOGDIR/cookies%TESTNUMBER
55 <file name="%LOGDIR/cookies%TESTNUMBER" mode="text">
57 # https://curl.se/docs/http-cookies.html
H A Dtest19055 cookies
36 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER %LOGDIR/cookies%TESTNUMBER
39 cookies
51 <file name="%LOGDIR/cookies%TESTNUMBER" mode="text">
53 # https://curl.se/docs/http-cookies.html
H A Dtest14766 cookies
32 -x http://%HOSTIP:%HTTPPORT/%TESTNUMBER http://curl.co.UK -c %LOGDIR/cookies%TESTNUMBER.txt
37 cookies
51 <file name="%LOGDIR/cookies%TESTNUMBER.txt" mode="text">
53 # https://curl.se/docs/http-cookies.html
H A Dtest3276 cookies
43 HTTP with cookiejar without cookies left
46 http://%HOSTIP:%HTTPPORT/we/want/%TESTNUMBER -b none -c %LOGDIR/cookies%TESTNUMBER http://%HOSTIP:%…
49 cookies
68 <file name="%LOGDIR/cookies%TESTNUMBER" mode="text">
70 # https://curl.se/docs/http-cookies.html
H A Dtest1726 cookies
27 HTTP with cookies file and custom added cookie
34 # https://curl.se/docs/http-cookies.html
42 cookies
H A Dtest736 cookies
29 HTTP, receive cookies when using custom Host:, domain using only two dots
35 cookies
50 # https://curl.se/docs/http-cookies.html
H A Dtest12187 cookies
11 # This test is very similar to 1216, only that it sets the cookies from the
30 HTTP cookies and domains with same prefix
36 cookies
H A Dtest11667 cookies
20 This server reply is for testing a Location: following with cookies
30 HTTP response with cookies but not receiving!
H A Dtest536 cookies
29 HTTP, junk session cookies
40 cookies
H A Dtest12587 cookies
30 HTTP, use cookies with localhost
36 cookies
H A Dtest3926 cookies
31 HTTP secure cookies over localhost
41 cookies
/curl/docs/examples/
H A Dcookie_interface.c41 struct curl_slist *cookies; in print_cookies() local
46 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &cookies); in print_cookies()
52 nc = cookies; in print_cookies()
62 curl_slist_free_all(cookies); in print_cookies()
/curl/lib/
H A Dshare.c87 if(!share->cookies) { in curl_share_setopt()
88 share->cookies = Curl_cookie_init(NULL, NULL, NULL, TRUE); in curl_share_setopt()
89 if(!share->cookies) in curl_share_setopt()
156 if(share->cookies) { in curl_share_setopt()
157 Curl_cookie_cleanup(share->cookies); in curl_share_setopt()
158 share->cookies = NULL; in curl_share_setopt()
240 Curl_cookie_cleanup(share->cookies); in curl_share_cleanup()

Completed in 35 milliseconds

12345