aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/dump-header.d
diff options
context:
space:
mode:
Diffstat (limited to 'docs/cmdline-opts/dump-header.d')
-rw-r--r--docs/cmdline-opts/dump-header.d12
1 files changed, 4 insertions, 8 deletions
diff --git a/docs/cmdline-opts/dump-header.d b/docs/cmdline-opts/dump-header.d
index 8449dfe85..8c617b92c 100644
--- a/docs/cmdline-opts/dump-header.d
+++ b/docs/cmdline-opts/dump-header.d
@@ -5,15 +5,11 @@ Help: Write the received headers to <filename>
Protocols: HTTP FTP
See-also: output
Category: http ftp
+Example: --dump-header store.txt $URL
+Added: 5.7
---
-Write the received protocol headers to the specified file.
-
-This option is handy to use when you want to store the headers that an HTTP
-site sends to you. Cookies from the headers could then be read in a second
-curl invocation by using the --cookie option! The --cookie-jar option is a
-better way to store cookies.
-
-If no headers are received, the use of this option will create an empty file.
+Write the received protocol headers to the specified file. If no headers are
+received, the use of this option will create an empty file.
When used in FTP, the FTP server response lines are considered being "headers"
and thus are saved there.