All Projects → WeihanLi → dotnet-httpie

WeihanLi / dotnet-httpie

Licence: MIT license
Amazing HTTP command-line tool powered by .NET, inspired by httpie

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to dotnet-httpie

dotnet-document
A tool for auto-generating XML documentation for your C# code
Stars: ✭ 59 (+145.83%)
Mutual labels:  dotnet-tool
dotnet-format
A GitHub Action to run dotnet-format as part of your workflow
Stars: ✭ 25 (+4.17%)
Mutual labels:  dotnet-tool
LiveReloadServer
A self-contained, local, cross-platform, static file Web Server with automatic Live Reloading, Markdown rendering and loose Razor Pages support.
Stars: ✭ 69 (+187.5%)
Mutual labels:  dotnet-tool
httpie-image
HTTPie plugin to display images in iTerm2
Stars: ✭ 23 (-4.17%)
Mutual labels:  httpie
httpie-edgegrid
Plugin for httpie to allow edge grid authentication for Akamai
Stars: ✭ 69 (+187.5%)
Mutual labels:  httpie
EncodingNormalior
规范化文件编码。Make the file's encoding standard.
Stars: ✭ 58 (+141.67%)
Mutual labels:  dotnet-tool
dotnet-file
Download, update and sync loose files from URLs
Stars: ✭ 42 (+75%)
Mutual labels:  dotnet-tool
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+34604.17%)
Mutual labels:  httpie
Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+220950%)
Mutual labels:  httpie
portainer-stack-utils
CLI client for Portainer
Stars: ✭ 66 (+175%)
Mutual labels:  httpie
httpie-aws-authv4
AWS Auth v4 (API Gateway, Elasticsearch, etc) plugin for HTTPie
Stars: ✭ 37 (+54.17%)
Mutual labels:  httpie
httpie-unixsocket
A UNIX socket plugin for HTTPie
Stars: ✭ 40 (+66.67%)
Mutual labels:  httpie
AwsTerm
A collection of awesome terminal utilities
Stars: ✭ 37 (+54.17%)
Mutual labels:  httpie
dotnetCampus.Svg2XamlTool
Svg to WPF XAML file. 拖入 SVG 文件,即可转换为 XAML 可用代码
Stars: ✭ 14 (-41.67%)
Mutual labels:  dotnet-tool
fasmi
F# -> ASM disassembler
Stars: ✭ 168 (+600%)
Mutual labels:  dotnet-tool

dotnet-HTTPie

dotnet-HTTPie

dotnet-HTTPie Latest

Github Actions Build Status

Docker Pulls

Intro

dotnet tool version of httpie, Modern, user-friendly command-line HTTP client for the API era.

httpie

HTTPie (pronounced aitch-tee-tee-pie) is a command-line HTTP client. Its goal is to make CLI interaction with web services as human-friendly as possible. HTTPie is designed for testing, debugging, and generally interacting with APIs & HTTP servers.

Install

Install .NET SDK before you get started with this tool, when you had .NET SDK installed, run the command below to install the latest stable version tool

dotnet tool update --global dotnet-httpie

For latest preview version, run the following command instead:

dotnet tool update --global dotnet-httpie --prerelease

GetStarted

Now you can use the tool to call your API you want

Usages:

dotnet-http [flags] [METHOD] URL [ITEM [ITEM]]

There're three types of item

Type Grammar
Query name==test
Header X-Api-Key:test
Request-Data name=test, raw data field example(Only effective for JSON): age:=10, job:='{"Id":1,"Name":"test"}'(Escape needed for Windows)

Here's a sample: sample

More examples you may wanna have a look

dotnet-http :5000/api/values
dotnet-http localhost:5000/api/values
dotnet-http get https://reservation.weihanli.xyz/api/notice --body
dotnet-http /api/notice title=test body=test-body
dotnet-http post http://localhost/api/notice title=test body=test-body

Docker

There's a docker image(weihanli/dotnet-httpie) that you could use directly without installing the tool, use sample:

docker run --rm --pull=always weihanli/dotnet-httpie:latest http -v github.com

docker run --rm --pull=always weihanli/dotnet-httpie:latest http reservation.weihanli.xyz/health job:='{"id":1,"name":"tester"}' --offline

docker run --rm --pull=always weihanli/dotnet-httpie:latest http PUT httpbin.org hello=world

docker run --rm --pull=always weihanli/dotnet-httpie:latest http get httpbin.org/status/400

More

For detailed document: have a look at HTTPie documents https://httpie.io/docs#examples

References

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].