xh
Friendly and fast tool for sending HTTP requests. tldr-pages
On several platforms
Several platforms
Friendly and fast tool for sending HTTP requests. Note: xh, written in rust, serves as an effective drop-in replacement for http.
Send a GET request (shows response headers and content)
xh https://postman-echo.com/getIdentifySend a POST request with a JSON body (key-value pairs are added to a top-level JSON object - e.g. {"name": "john", "age": 25})
xh post https://postman-echo.com/post name=john age=25IdentifySend a GET request with query parameters (e.g. <https://postman-echo.com/response-headers?foo1=bar1&foo2=bar2>)
xh get https://postman-echo.com/response-headers foo1==bar1 foo2==bar2IdentifySend a GET request with a custom header
xh get https://postman-echo.com header-name:header-valueIdentifyMake a GET request and save the response body to a file
xh --download https://example.com --output path/to/fileIdentifySimulate sending a request without actually sending it
xh --offline get https://example.comIdentifyShow equivalent curl command (this will not send any request)
xh --curl --follow --verbose get https://example.com user-agent:curlIdentify