From 9c2826882981b6c5a0970d135c44866c5a1533c6 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 20 Dec 2017 20:27:08 +0800 Subject: [PATCH] Update httpie.md --- pages/linux/httpie.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pages/linux/httpie.md b/pages/linux/httpie.md index 1f560cd2ef..0fed4fc887 100644 --- a/pages/linux/httpie.md +++ b/pages/linux/httpie.md @@ -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}}`