From b62473aa25c3e56d90722556aa2787fae72eec73 Mon Sep 17 00:00:00 2001 From: Max Xu Date: Wed, 20 Dec 2017 11:51:32 +0800 Subject: [PATCH] httpie.md: add page --- pages/linux/httpie.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pages/linux/httpie.md diff --git a/pages/linux/httpie.md b/pages/linux/httpie.md new file mode 100644 index 000000000..1f560cd2e --- /dev/null +++ b/pages/linux/httpie.md @@ -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}}`