A simple yet powerful command-line HTTP and API testing client for the API era.
We built HTTPIe from the ground up for painless testing and debugging of APIs, HTTP servers, and web services.
wget-like download mode
HTTPie CLI can be installed on any OS.
$ https httpie.io/hello
$ 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
Build and print a request without sending it using offline mode:
$ http --offline pie.dev/post hello=offline
$ http -a USERNAME POST https://api.github.com/repos/httpie/httpie/issues/83/comments body=HTTPie is awesome! :heart:
Upload a file using redirected input:
$ http pie.dev/post < files/data.json
Download a file and save it via redirected output:
$ http pie.dev/image/png > image.png
Download a file
$ http --download pie.dev/image/png
Use named sessions to make certain aspects of the communication persistent between requests to the same host:
$ http --session=logged-in -a username:password pie.dev/get API-Key:123
$ http --session=logged-in pie.dev/headers
Set a custom
Host header to work around missing DNS records:
$ http localhost:8000 Host:example.com
Developers all around the world rely on HTTPie for API testing. Our users include the engineers behind some of the most important technology companies driving change today.
Join the community
Join the occasional newsletter