1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-09-08 05:13:32 +02:00

-H instead of --head for cURL, adding verbose output

This commit is contained in:
Bob Strecansky 2016-01-19 13:09:42 -05:00
parent 17b990f4e4
commit 982fcfce4a

View file

@ -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}}`