]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl.1: add an example for -H
authorDaniel Stenberg <daniel@haxx.se>
Fri, 29 Aug 2014 06:07:47 +0000 (08:07 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Aug 2014 06:07:47 +0000 (08:07 +0200)
docs/curl.1

index 6bb2d1c5fc9687c0f7620854c55a0731b396f1f2..8f785705e9179995ea3a1cdcc20e8bf395feb328 100644 (file)
@@ -699,6 +699,10 @@ See also the \fI-A, --user-agent\fP and \fI-e, --referer\fP options.
 Starting in 7.37.0, you need \fI--proxy-header\fP to send custom headers
 intended for a proxy.
 
+Example:
+
+\&# curl -H "X-First-Name: Joe" http://192.168.0.1/
+
 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