From 84b9458837551a2749b45d924089f2015415a324 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Jun 2017 11:08:31 +0200 Subject: curl: allow --header and --proxy-header read from file So many headers can be provided as @filename. Suggested-by: Timothe Litt Closes #1486 --- docs/cmdline-opts/proxy-header.d | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/cmdline-opts/proxy-header.d') 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:
-Help: Pass custom header LINE to proxy +Arg:
+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. -- cgit v1.2.3