1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-11-02 03:17:58 +01:00

curl: add --header example

This commit is contained in:
James Carlos 2016-01-12 11:24:22 -08:00
parent 464b67f078
commit b38813ca3f

View file

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