blob: 2f3b8e9e65c0a047a8b59264ee0f38d2b3082adf [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
2SPDX-License-Identifier: curl
3Short: c
4Long: cookie-jar
5Arg: <filename>
6Protocols: HTTP
7Help: Write cookies to <filename> after operation
8Category: http
9Example: -c store-here.txt $URL
10Example: -c store-here.txt -b read-these $URL
11Added: 7.9
12See-also: cookie
13Multi: single
14---
15Specify to which file you want curl to write all cookies after a completed
16operation. Curl writes all cookies from its in-memory cookie storage to the
17given file at the end of operations. If no cookies are known, no data will be
18written. The file will be written using the Netscape cookie file format. If
19you set the file name to a single dash, "-", the cookies will be written to
20stdout.
21
22This command line option will activate the cookie engine that makes curl
23record and use cookies. Another way to activate it is to use the --cookie
24option.
25
26If the cookie jar cannot be created or written to, the whole curl operation
27will not fail or even report an error clearly. Using --verbose will get a
28warning displayed, but that is the only visible feedback you get about this
29possibly lethal situation.