| name | xh |
| description | Use this skill when the user wants to send HTTP requests, test APIs, download files, or needs an HTTPie replacement for making HTTP calls. |
xh Plugin
Friendly and fast HTTP client — drop-in replacement for HTTPie.
Commands
Requests
xh request get — Send GET request
xh request post — Send POST request
xh request download — Download file
Usage Examples
- "GET a URL"
- "POST JSON data"
- "Download a file"
- "Send request with headers"
Installation
curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh | sh
cargo install xh
brew install xh
Examples
xh httpbin.org/json
xh post httpbin.org/post name=ahmed age:=24
xh get httpbin.org/json id==5
xh get httpbin.org/json x-api-key:12345
xh -d httpbin.org/json -o res.json
xh get httpbin.org/json -F
Key Syntax
= — String field in body
:= — Non-string JSON field
== — Query parameter
: — Header
@ — File upload
Features
- HTTP/2 support
- JSON and form data
- File uploads
- Basic/Bearer auth
- Follow redirects
--curl flag to print equivalent curl command