Skip to content

Commit

Permalink
Update httpie.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsxu authored Dec 20, 2017
1 parent b62473a commit 9c28268
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pages/linux/httpie.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,30 @@

> 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}}`

- POST method (default method with request data):
- Send a POST request (default method with request data):

`http {{example.org}} {{hello=World}}`

- POST method with redirected input:
- Send a POST request with redirected input:

`http {{example.org}} < {{file.json}}`

- PUT method:
- Send a PUT request:

`http PUT {{httpbin.org/put}} {{API-Key:foo hello=world}}`

- DELETE method:
- Send a DELETE request:

`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}}`

- Download file:
- Download a file:

`http --download {{example.org}}`

0 comments on commit 9c28268

Please sign in to comment.