mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-06 08:35:40 +02:00
Merge branch 'jamescarlos-curl-header'
This commit is contained in:
commit
954bbbaa26
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