Skip to content

Commit

Permalink
curl.1: add warning when using -H and redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Feb 7, 2015
1 parent 761d516 commit 499024d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/curl.1
Expand Up @@ -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
Expand Down

0 comments on commit 499024d

Please sign in to comment.