cookie-jar.d 1.1 KB

12345678910111213141516171819202122232425262728
  1. Short: c
  2. Long: cookie-jar
  3. Arg: <filename>
  4. Protocols: HTTP
  5. Help: Write cookies to <filename> after operation
  6. Category: http
  7. Example: -c store-here.txt $URL
  8. Example: -c store-here.txt -b read-these $URL
  9. Added: 7.9
  10. ---
  11. Specify to which file you want curl to write all cookies after a completed
  12. operation. Curl writes all cookies from its in-memory cookie storage to the
  13. given file at the end of operations. If no cookies are known, no data will be
  14. written. The file will be written using the Netscape cookie file format. If
  15. you set the file name to a single dash, "-", the cookies will be written to
  16. stdout.
  17. This command line option will activate the cookie engine that makes curl
  18. record and use cookies. Another way to activate it is to use the --cookie
  19. option.
  20. If the cookie jar cannot be created or written to, the whole curl operation
  21. will not fail or even report an error clearly. Using --verbose will get a
  22. warning displayed, but that is the only visible feedback you get about this
  23. possibly lethal situation.
  24. If this option is used several times, the last specified file name will be
  25. used.