aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2015-02-08 00:05:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2015-02-08 00:05:55 +0100
commit499024d2085c56edd2fd4b46d8b5b5e140616fc0 (patch)
tree30d211952787957d32dcf45e21646dc47b651400
parent761d5166aff64c877a72fff48a5f754dfa1ab4e0 (diff)
curl.1: add warning when using -H and redirects
-rw-r--r--docs/curl.16
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/curl.1 b/docs/curl.1
index af5d5f348..8b2d3f8cc 100644
--- a/docs/curl.1
+++ b/docs/curl.1
@@ -743,6 +743,12 @@ Example:
\&# curl -H "X-First-Name: Joe" http://192.168.0.1/
+\fBWARNING\fP: headers set with this option will be set in all requests - even
+after redirects are followed, like when told with \fB-L, --location\fP. This
+can lead to the header being sent to other hosts than the original host, so
+sensitive headers should be used with caution combined with following
+redirects.
+
This option can be used multiple times to add/replace/remove multiple headers.
.IP "--hostpubmd5 <md5>"
(SCP/SFTP) Pass a string containing 32 hexadecimal digits. The string should