From 982fcfce4a8c272b34ec925a9eacd9eaf46a56c1 Mon Sep 17 00:00:00 2001 From: Bob Strecansky Date: Tue, 19 Jan 2016 13:09:42 -0500 Subject: [PATCH] -H instead of --head for cURL, adding verbose output --- pages/common/curl.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pages/common/curl.md b/pages/common/curl.md index ec00cce15..067463dbc 100644 --- a/pages/common/curl.md +++ b/pages/common/curl.md @@ -21,12 +21,16 @@ - Head request: -`curl --head {{http://localhost}}` +`curl -H {{http://localhost}}` - Include an extra header: -`curl --header "{{X-MyHeader: 123}}" {{http://localhost}}` +`curl -H "{{X-MyHeader: 123}}" {{http://localhost}}` - Pass a user name and password for server authentication: `curl -u myusername:mypassword {{http://localhost}}` + +- Retrieve verbose output for a cURL request: + +`curl -v {{http://localhost}}`