HTTPie
Notes// archive From the original Code Walker docs. Kept for reference, so some versions and commands may be out of date.
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 httpieRed 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 -ydnf install httpie -yHere 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!"
}