Home Software Development PowerShell HTTPie in PowerShell

HTTPie in PowerShell

0
HTTPie in PowerShell

HTTPie in PowerShell

HTTPPie is very easy to use command-line HTTP utility for making requests. It features JSON support, syntax highlighting, persistent sessions, and is capable of downloading files, extension by plugins, and much more. It’s easy as pie!

Installation

You will need Python 3 installed and update PIP to the latest version.

pip install -U httpie

https://httpie.org/

Features

Let’s look at what this does and how it works. If I type “http mrjamiebowman“, it will display this below. It’s a 301 redirect because it’s expecting an https url.

If I type “http https://www.mrjamiebowman.com” I get a successful HTTP 200 response.

Requests to APIs

This is probably where HTTPie excels… with built in JSON support it’s easy to see responses from an API endpoint.

http --follow https://mcr.microsoft.com/v2/mssql/server/tags/list