Commands are very simple, http or https:
https httpbin.org/status/418
Custom HTTP method, HTTP headers and JSON data:
http PUT pie.dev/put X-API-Token:123 name=John
Submitting forms:
http -f POST pie.dev/post hello=World
See the request that is being sent using one of the output options:
http -v pie.dev/get
Upload a file using redirected input:
http pie.dev/post < files/data.json
Use named sessions:
http --session=logged-in -a username:password pie.dev/get API-Key:123
http --session=logged-in pie.dev/headers
Alternatively there's a clone of httpie with a very similar interface that is
actually just a wrapper for curl:
https://github.com/rs/curlie