From 672878abd0babc310318c103cf1faccc7e6cc9a1 Mon Sep 17 00:00:00 2001 From: jcherqui Date: Sun, 15 Jan 2017 16:47:30 +0100 Subject: [PATCH] curl: add -I option to the -u example (#1240) --- pages/common/curl.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/common/curl.md b/pages/common/curl.md index bb60426fd..84c0d24eb 100644 --- a/pages/common/curl.md +++ b/pages/common/curl.md @@ -23,9 +23,9 @@ `curl -d {{'{"name":"bob"}'}} -X {{PUT}} -H {{'Content-Type: application/json'}} {{http://example.com/users/1234}}` -- Pass a user name and password for server authentication: +- Pass a user name and password for server authentication and show headers info only: -`curl -u myusername:mypassword {{http://example.com}}` +`curl -u myusername:mypassword -I {{http://example.com}}` - Pass client certificate and key for a secure resource: