summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/proxy-header.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-06-15 11:08:31 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:27:06 +0000
commita631739790ea9bb9c94635c0f1162ed665e06a27 (patch)
treef80929f17868ca4516c83dee05e4148af3f5c30a /docs/cmdline-opts/proxy-header.d
parent324f523467b8a4930ae71d81c934cf7c8170e00c (diff)
downloadgnurl-a631739790ea9bb9c94635c0f1162ed665e06a27.tar.gz
gnurl-a631739790ea9bb9c94635c0f1162ed665e06a27.tar.bz2
gnurl-a631739790ea9bb9c94635c0f1162ed665e06a27.zip
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/proxy-header.d')
-rw-r--r--docs/cmdline-opts/proxy-header.d8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/cmdline-opts/proxy-header.d b/docs/cmdline-opts/proxy-header.d
index 1ef696bc7..c1b0bb7c4 100644
--- a/docs/cmdline-opts/proxy-header.d
+++ b/docs/cmdline-opts/proxy-header.d
@@ -1,6 +1,6 @@
Long: proxy-header
-Arg: <header>
-Help: Pass custom header LINE to proxy
+Arg: <header/@file>
+Help: Pass custom header(s) to proxy
Protocols: HTTP
Added: 7.37.0
---
@@ -17,4 +17,8 @@ up for you.
Headers specified with this option will not be included in requests that curl
knows will not be sent to a proxy.
+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.
+
This option can be used multiple times to add/replace/remove multiple headers.