]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
dump-header.md: mention minus for stdout
authorDaniel Stenberg <daniel@haxx.se>
Sun, 23 Jun 2024 09:33:47 +0000 (11:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 23 Jun 2024 10:08:58 +0000 (12:08 +0200)
Closes #13985

docs/cmdline-opts/dump-header.md

index 42d3e85ed60d82405186bbc34aed66d7ff468053..925e6da668a2b2c0717802f89c3845fc37d4adf6 100644 (file)
@@ -13,12 +13,14 @@ See-also:
   - output
 Example:
   - --dump-header store.txt $URL
+  - --dump-header - $URL -o save
 ---
 
 # `--dump-header`
 
 Write the received protocol headers to the specified file. If no headers are
-received, the use of this option creates an empty file.
+received, the use of this option creates an empty file. Specify `-` as file
+name (a single minus) to have it written to stdout.
 
 When used in FTP, the FTP server response lines are considered being "headers"
 and thus are saved there.