cookie-jar.d 1.2 KB

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