mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 10:44:55 +02:00
Merge branch 'http' of git://github.com/jkbrzt/tldr into jkbrzt-http
This commit is contained in:
commit
e60647db93
1 changed files with 27 additions and 0 deletions
27
pages/common/http.md
Normal file
27
pages/common/http.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# http
|
||||
|
||||
> HTTPie: HTTP client, a user-friendly cURL replacement.
|
||||
|
||||
- Download a URL to a file:
|
||||
|
||||
`http -d {{example.org}}`
|
||||
|
||||
- Send form-encoded data:
|
||||
|
||||
`http -f {{example.org}} {{name='bob'}} {{profile-picture@'bob.png'}}`
|
||||
|
||||
- Send JSON object:
|
||||
|
||||
`http {{example.org}} {{name='bob'}}`
|
||||
|
||||
- Specify an HTTP method:
|
||||
|
||||
`http {{HEAD}} {{example.org}}`
|
||||
|
||||
- Include an extra header:
|
||||
|
||||
`http {{example.org}} {{X-MyHeader:123}}`
|
||||
|
||||
- Pass a user name and password for server authentication:
|
||||
|
||||
`http -a {{username:password}} {{example.org}}`
|
Loading…
Add table
Reference in a new issue