🥧 HTTPie CLI — modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more.
Go to file
Jan Verbeek 301f3162c8 Do not hang when deciding not to compress a file upload
This command would hang forever:

```console
$ echo test > test.txt
$ http -x httpbin.org/post @test.txt
```

HTTPie would read the file, compress it, then discard the compressed
data because it's larger than the original. This made `request.body`
an exhausted file handle, which `requests` doesn't seem to like.
2025-01-22 13:07:07 +01:00
.github Update test.yml 2024-11-01 18:01:03 +01:00
docs Fix link to CurliPie tool (#1582) 2024-10-31 09:13:24 -07:00
extras Fix https behaviour in fish (#1611) 2024-12-17 09:30:35 -08:00
httpie Do not hang when deciding not to compress a file upload 2025-01-22 13:07:07 +01:00
tests Do not hang when deciding not to compress a file upload 2025-01-22 13:07:07 +01:00
.editorconfig
.gitignore Single binary executables (#1330) 2022-04-14 08:11:12 -07:00
.packit.yaml Disable PackIt CI on the PRs (#1375) 2022-04-28 11:59:08 +03:00
AUTHORS.md Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
CHANGELOG.md 3.2.4 2024-11-01 18:29:56 +01:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
LICENSE
Makefile Migrate setup.py to setup.cfg (#1553) 2024-03-18 16:37:09 +01:00
MANIFEST.in Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00
pytest.ini
README.md docs: Update the url for offline mode (#1556) 2024-03-04 15:35:32 +01:00
SECURITY.md
setup.cfg Explicitly load default certificates when creating SSL context (#1583) (#1596) 2024-11-01 09:37:11 -07:00
setup.py Migrate setup.py to setup.cfg (#1553) 2024-03-18 16:37:09 +01:00
snapcraft.yaml Rename repo from httpie/httpie to httpie/cli 2023-08-06 14:04:32 +02:00

HTTPie
HTTPie CLI: human-friendly HTTP client for the API era

HTTPie for Desktop Twitter Chat

Docs Latest version Build Coverage PyPi downloads

HTTPie (pronounced aitch-tee-tee-pie) is a command-line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers. The http & https commands allow for creating and sending arbitrary HTTP requests. They use simple and natural syntax and provide formatted and colorized output.

HTTPie in action

We lost 54k GitHub stars

Please note we recently accidentally made this repo private for a moment, and GitHub deleted our community that took a decade to build. Read the full story here: https://httpie.io/blog/stardust

Getting started

Features

  • Expressive and intuitive syntax
  • Formatted and colorized terminal output
  • Built-in JSON support
  • Forms and file uploads
  • HTTPS, proxies, and authentication
  • Arbitrary request data
  • Custom headers
  • Persistent sessions
  • wget-like downloads

See all features →

Examples

Hello World:

https httpie.io/hello

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

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:'

See more examples →

Community & support

Contributing

Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using one of the templates provided.

See contribution guide →