mirror of https://github.com/CrimsonTome/tldr.git
Update httpie.md
parent
b62473aa25
commit
9c28268829
|
@ -2,30 +2,30 @@
|
||||||
|
|
||||||
> A human-friendly CLI HTTP tool.
|
> A human-friendly CLI HTTP tool.
|
||||||
|
|
||||||
- GET method (default method with no request data):
|
- Send a GET request (default method with no request data):
|
||||||
|
|
||||||
`http {{https://api.github.com/users}}`
|
`http {{https://api.github.com/users}}`
|
||||||
|
|
||||||
- POST method (default method with request data):
|
- Send a POST request (default method with request data):
|
||||||
|
|
||||||
`http {{example.org}} {{hello=World}}`
|
`http {{example.org}} {{hello=World}}`
|
||||||
|
|
||||||
- POST method with redirected input:
|
- Send a POST request with redirected input:
|
||||||
|
|
||||||
`http {{example.org}} < {{file.json}}`
|
`http {{example.org}} < {{file.json}}`
|
||||||
|
|
||||||
- PUT method:
|
- Send a PUT request:
|
||||||
|
|
||||||
`http PUT {{httpbin.org/put}} {{API-Key:foo hello=world}}`
|
`http PUT {{httpbin.org/put}} {{API-Key:foo hello=world}}`
|
||||||
|
|
||||||
- DELETE method:
|
- Send a DELETE request:
|
||||||
|
|
||||||
`http DELETE {{example.org/todos/7}}`
|
`http DELETE {{example.org/todos/7}}`
|
||||||
|
|
||||||
- Show the whole HTTP exchange (request and response):
|
- Show the whole HTTP exchange (both request and response):
|
||||||
|
|
||||||
`http -v {{example.org}}`
|
`http -v {{example.org}}`
|
||||||
|
|
||||||
- Download file:
|
- Download a file:
|
||||||
|
|
||||||
`http --download {{example.org}}`
|
`http --download {{example.org}}`
|
||||||
|
|
Loading…
Reference in New Issue