Explorar o código

curl: add -I option to the -u example (#1240)

jcherqui %!s(int64=8) %!d(string=hai) anos
pai
achega
672878abd0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      pages/common/curl.md

+ 2 - 2
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: