Skip to content

Commit

Permalink
cookie.d: clarify when cookies are always sent
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Apr 25, 2022
1 parent afe752e commit c126299
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/cmdline-opts/cookie.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@ Example: -b cookiefile -c cookiefile $URL
See-also: cookie-jar junk-session-cookies
Added: 4.9
---
Pass the data to the HTTP server in the Cookie header. It is supposedly
the data previously received from the server in a "Set-Cookie:" line. The
data should be in the format "NAME1=VALUE1; NAME2=VALUE2".
Pass the data to the HTTP server in the Cookie header. It is supposedly the
data previously received from the server in a "Set-Cookie:" line. The data
should be in the format "NAME1=VALUE1; NAME2=VALUE2". This makes curl use the
cookie header with this content explicitly in all outgoing request(s). If
multiple requests are done due to authentication, followed redirects or
similar, they will all get this cookie passed on.

If no '=' symbol is used in the argument, it is instead treated as a filename
to read previously stored cookie from. This option also activates the cookie
Expand Down

0 comments on commit c126299

Please sign in to comment.