HTTPie CLI

HTTPie CLI

User-friendly Python command-line HTTP client built for the API era with expressive JSON syntax, colorized output, and sessions.

★ 38.8K

Test REST and JSON APIs from your terminal without escaping messy curl flags

Testing a simple JSON POST endpoint with `curl` forces you to type `-X POST -H “Content-Type: application/json” -d ‘{“key”:”value”}’` while fighting nested shell quotes and unformatted single-line response dumps. HTTPie CLI (`http` and `https`) replaces that ceremony with a clean, declarative Python command syntax built specifically for modern JSON APIs. Carrying 38.8K GitHub stars and 4,200 forks under the BSD-3-Clause license, it turns `http POST api.example.com/items name=Book count:=3` into a properly serialized, syntax-highlighted request.

Why backend developers keep HTTPie alongside curl

  • Expressive key-value tokens (`=` for strings, `:=` for raw JSON numbers/booleans, `:` for HTTP headers, `==` for URL query params) eliminate manual JSON string escaping.
  • Automatic response formatting pretty-prints and colorizes HTTP headers, JSON payloads, and XML bodies in your terminal without piping into `jq`.
  • Persistent named sessions (`–session=logged-in`) store cookies, auth tokens, and custom headers on disk across multiple test requests.
  • Built-in `wget`-style file downloads (`–download`), offline request previewing (`–offline`), and pluggable OAuth/AWS SigV4 auth adapters simplify daily API debugging.

When to stick with curl

Because HTTPie runs on Python (`92.4%` Python), its cold startup takes a couple hundred milliseconds longer than a native C `curl` binary inside tight loop scripts or minimal Alpine containers. Install `httpie` via Homebrew, pipx, or apt today to make interactive API testing effortless.

Ready to try HTTPie CLI?

Experience the full capabilities on their official website.

Visit Official Website