bash httpie http‐prompt curl - ghdrako/doc_snipets GitHub Wiki

pip install httpie
apt-get install httpie # ubuntu

Custom HTTP method, HTTP headers and JSON data:

http PUT pie.dev/put X-API-Token:123 name=John

Build and print a request without sending it using offline mode:

http --offline pie.dev/post hello=offline

Download

http --download GET https://httpbin.org/image/jpeg

Sending custom requests with HTTPie

#  send specific headers
http GET https://httpbin.org/headers X-Open-Source-Com:Awesome