Httpie: Difference between revisions

From AWVVO
Jump to navigationJump to search
Created page with "== Installation == <syntaxhighlight lang="bash" copy line highlight="0"> 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 </syntaxhighlight>"
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
https://httpie.io/docs/cli
== Installation ==
== Installation ==
<syntaxhighlight lang="bash" copy line highlight="0">
<syntaxhighlight lang="bash" copy line highlight="0">
Line 5: 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