httpie.md: add page

coverage
Max Xu 2017-12-20 11:51:32 +08:00 committed by GitHub
parent e2f15e7470
commit b62473aa25
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 31 additions and 0 deletions

31
pages/linux/httpie.md Normal file
View File

@ -0,0 +1,31 @@
# httpie
> A human-friendly CLI HTTP tool.
- GET method (default method with no request data):
`http {{https://api.github.com/users}}`
- POST method (default method with request data):
`http {{example.org}} {{hello=World}}`
- POST method with redirected input:
`http {{example.org}} < {{file.json}}`
- PUT method:
`http PUT {{httpbin.org/put}} {{API-Key:foo hello=world}}`
- DELETE method:
`http DELETE {{example.org/todos/7}}`
- Show the whole HTTP exchange (request and response):
`http -v {{example.org}}`
- Download file:
`http --download {{example.org}}`