aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/header.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-15 11:08:31 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-06-15 11:09:40 +0200
commit84b9458837551a2749b45d924089f2015415a324 (patch)
tree883cf0c7b9802226baa16495e6a6e766c799c405 /docs/cmdline-opts/header.d
parentb3e3a08c3c2f223fcab8631e31b1c59f29e0b4c0 (diff)
curl: allow --header and --proxy-header read from file
So many headers can be provided as @filename. Suggested-by: Timothe Litt Closes #1486
Diffstat (limited to 'docs/cmdline-opts/header.d')
-rw-r--r--docs/cmdline-opts/header.d9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/cmdline-opts/header.d b/docs/cmdline-opts/header.d
index 90af7359e..d8292ed77 100644
--- a/docs/cmdline-opts/header.d
+++ b/docs/cmdline-opts/header.d
@@ -1,10 +1,9 @@
Long: header
Short: H
-Arg: <header>
-Help: Pass custom header LINE to server
+Arg: <header/@file>
+Help: Pass custom header(s) to server
Protocols: HTTP
---
-
Extra header to include in the request when sending HTTP to a server. You may
specify any number of extra headers. Note that if you should add a custom
header that has the same name as one of the internal ones curl would use, your
@@ -21,6 +20,10 @@ end-of-line marker, you should thus \fBnot\fP add that as a part of the header
content: do not add newlines or carriage returns, they will only mess things up
for you.
+Starting in 7.55.0, this option can take an argument in @filename style, which
+then adds a header for each line in the input file. Using @- will make curl
+read the header file from stdin.
+
See also the --user-agent and --referer options.
Starting in 7.37.0, you need --proxy-header to send custom headers intended