diff --git a/pages/common/http.md b/pages/common/http.md new file mode 100644 index 000000000..ca7ef4efa --- /dev/null +++ b/pages/common/http.md @@ -0,0 +1,27 @@ +# http + +> HTTPie: HTTP client, a user-friendly cURL replacement. + +- Download a URL to a file: + +`http -d {{example.org}}` + +- Send form-encoded data: + +`http -f {{example.org}} {{name='bob'}} {{profile-picture@'bob.png'}}` + +- Send JSON object: + +`http {{example.org}} {{name='bob'}}` + +- Specify an HTTP method: + +`http {{HEAD}} {{example.org}}` + +- Include an extra header: + +`http {{example.org}} {{X-MyHeader:123}}` + +- Pass a user name and password for server authentication: + +`http -a {{username:password}} {{example.org}}`