mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-09 19:33:49 +02:00
curl: add --header example
This commit is contained in:
parent
464b67f078
commit
b38813ca3f
1 changed files with 4 additions and 0 deletions
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
`curl --head {{http://localhost}}`
|
`curl --head {{http://localhost}}`
|
||||||
|
|
||||||
|
- include an extra header
|
||||||
|
|
||||||
|
`curl --header "{{X-MyHeader: 123}}" {{http://localhost}}`
|
||||||
|
|
||||||
- pass a user name and password for server authentication
|
- pass a user name and password for server authentication
|
||||||
|
|
||||||
`curl -u myusername:mypassword {{http://localhost}}`
|
`curl -u myusername:mypassword {{http://localhost}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue