From 5a6a7135141f67700bed141cfcb1e2e47afc67fc Mon Sep 17 00:00:00 2001 From: Max Xu Date: Fri, 22 Dec 2017 11:00:30 +0800 Subject: [PATCH] Update httpie.md --- pages/linux/httpie.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/linux/httpie.md b/pages/linux/httpie.md index 0fed4fc88..6edf41962 100644 --- a/pages/linux/httpie.md +++ b/pages/linux/httpie.md @@ -1,6 +1,6 @@ # httpie -> A human-friendly CLI HTTP tool. +> A user friendly command line HTTP tool. - Send a GET request (default method with no request data): @@ -14,13 +14,13 @@ `http {{example.org}} < {{file.json}}` -- Send a PUT request: +- Send a PUT request with a given json body: -`http PUT {{httpbin.org/put}} {{API-Key:foo hello=world}}` +`http PUT {{httpbin.org/put}} {{hello=world}}` -- Send a DELETE request: +- Send a DELETE request with a giben header: -`http DELETE {{example.org/todos/7}}` +`http DELETE {{example.org/todos/7}} {{API-Key:foo}}` - Show the whole HTTP exchange (both request and response):