HTTPie for
Terminal

A simple yet powerful command-line HTTP and API testing client for the API era.

Open Source. Open minded.
HTTPie demo

Designed for APIs

We built HTTPIe from the ground up for painless testing and debugging of APIs, HTTP servers, and web services.

  • Expressive and intuitive syntax
  • First-class JSON support
  • Colorized and formatted terminal output
  • Sensible defaults for the API era
  • Persistent sessions
  • Forms and file uploads
  • HTTPS, proxies, and authentication support
  • Support for arbitrary request data and headers
  • wget-like download mode
  • Extensions API for authentication, etc.
  • All that & more in two simple http + https commands

Installation

HTTPie CLI can be installed on any OS.

$<tool>install httpie

Getting started

HTTPie installs http and https:

Hello World:

$ https httpie.io/hello
Run

Custom HTTP method, HTTP headers and JSON data:

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

Submitting forms:

$ http -f POST pie.dev/post hello=World
Run

See the request that is being sent using one of the output options:

$ http -v pie.dev/get
Run

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

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

Use Github API to post a comment on an issue with authentication:

$ http -a USERNAME POST https://api.github.com/repos/httpie/cli/issues/83/comments body=HTTPie is awesome! :heart:
Run

Upload a file using redirected input:

$ http pie.dev/post < files/data.json
Run

Download a file and save it via redirected output:

$ http pie.dev/image/png > image.png
Run

Download a file wget style:

$ http --download pie.dev/image/png
Run

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
Run
$ http --session=logged-in pie.dev/headers
Run

Set a custom Host header to work around missing DNS records:

$ http localhost:8000 Host:example.com
Run

Loved by the community

Trusted by the best

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.

Open Source. Open hearted. Open minded.

Join the community

Join the occasional newsletter