Httpie: Difference between revisions

From AWVVO
Jump to navigationJump to search
 
Line 7: Line 7:
sudo apt update
sudo apt update
sudo apt install httpie
sudo apt install httpie
</syntaxhighlight>
== send header ==
<syntaxhighlight lang="bash" copy line highlight="0">
http http://localhost:8000 x-api-token:secret
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 18:50, 29 March 2025

https://httpie.io/docs/cli

Installation

curl -SsL https://packages.httpie.io/deb/KEY.gpg | sudo gpg --dearmor -o /usr/share/keyrings/httpie.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/httpie.gpg] https://packages.httpie.io/deb ./" | sudo tee /etc/apt/sources.list.d/httpie.list > /dev/null
sudo apt update
sudo apt install httpie

send header

http http://localhost:8000 x-api-token:secret