Skip to content

HTTPie

Using curl is perfectly fine, however using the HTTPie for making HTTP requests brings more intuitive syntax and highlighting.

Ubuntu 22.04

sudo apt install httpie

Red Hat Enterprise Linux

On Red Hat Enterprise Linux 8 you’ll need Extra Packages for Enterprise Linux ( EPEL) dnf install epel-release:

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
dnf install httpie -y

Here is the output using the http command:

$ http http://localhost:8000
HTTP/1.1 200 OK content-length: 28 content-type: application/json date: Tue, 04 Jan 2022 11:52:33 GMT server: uvicorn

{
"message": "Hello FastAPI!"
}