quickjs-tart

quickjs-based runtime for wallet-core logic
Log | Files | Refs | README | LICENSE

cookie-jar.md (1379B)


      1 ---
      2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
      3 SPDX-License-Identifier: curl
      4 Short: c
      5 Long: cookie-jar
      6 Arg: <filename>
      7 Protocols: HTTP
      8 Help: Save cookies to <filename> after operation
      9 Category: http
     10 Added: 7.9
     11 Multi: single
     12 See-also:
     13   - cookie
     14   - junk-session-cookies
     15 Example:
     16   - -c store-here.txt $URL
     17   - -c store-here.txt -b read-these $URL
     18 ---
     19 
     20 # `--cookie-jar`
     21 
     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
     26 file uses the Netscape cookie file format. If you set the filename to a single
     27 minus, "-", the cookies are written to stdout.
     28 
     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
     31 can specify the same file.
     32 
     33 This command line option activates the cookie engine that makes curl record
     34 and use cookies. The --cookie option also activates it.
     35 
     36 If the cookie jar cannot be created or written to, the whole curl operation
     37 does not fail or even report an error clearly. Using --verbose gets a warning
     38 displayed, but that is the only visible feedback you get about this possibly
     39 lethal situation.