From b38813ca3f8345bb28f3bd85b5c5885c746764d9 Mon Sep 17 00:00:00 2001 From: James Carlos Date: Tue, 12 Jan 2016 11:24:22 -0800 Subject: [PATCH] curl: add --header example --- pages/common/curl.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/curl.md b/pages/common/curl.md index b7cbd8504..be2ee01e4 100644 --- a/pages/common/curl.md +++ b/pages/common/curl.md @@ -23,6 +23,10 @@ `curl --head {{http://localhost}}` +- include an extra header + +`curl --header "{{X-MyHeader: 123}}" {{http://localhost}}` + - pass a user name and password for server authentication `curl -u myusername:mypassword {{http://localhost}}`