aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-03-20 23:25:12 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-03-20 23:25:12 +0100
commitd92a9bd4ecf53c4e410c57eeae315242c1db5790 (patch)
treed0fa34429f461e0d75a65ab21228c4a400f462a1
parent27d7e511d5db558273a1e9fcd8658918f5b77d62 (diff)
cookie.d: mention that "-" as filename means stdin
Reported-by: Dongliang Mu Fixes #2410
-rw-r--r--docs/cmdline-opts/cookie.d3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/cmdline-opts/cookie.d b/docs/cmdline-opts/cookie.d
index 383adda6e..3ae697548 100644
--- a/docs/cmdline-opts/cookie.d
+++ b/docs/cmdline-opts/cookie.d
@@ -12,7 +12,8 @@ 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
engine which will make curl record incoming cookies, which may be handy if
you're using this in combination with the --location option or do multiple URL
-transfers on the same invoke.
+transfers on the same invoke. If the file name is exactly a minus ("-"), curl
+will instead the contents from stdin.
The file format of the file to read cookies from should be plain HTTP headers
(Set-Cookie style) or the Netscape/Mozilla cookie file format.