bash httpie http‐prompt curl - ghdrako/doc_snipets GitHub Wiki
-
https://curlie.io/ - brings HTTPie-like interface to curl for performance and compatibility reasons
-
https://httpie.io/ Install
pip install httpie
apt-get install httpie # ubuntu
- http://example.org/ This a sample website to try the basic HTTP commands
- http://httpbin.org/ This is a simple HTTP Request & Response Service
- https://jsonplaceholder.typicode.com A placeholder website to invoke REST APIs
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