ducaale/xh
Friendly fast CLI for sending HTTP requests inspired by HTTPie
Tested on LinuxKnown vulnerabilities
Use it
Before you install: known vulnerabilities
pickfit found 3 known high or critical vulnerabilities in the packages a fresh install brings (OSV.dev, 5 Nov 2026). Weigh this before you install it.
crates:quick-xml 0.38.4Quadratic run time when checking a start tag for duplicate attribute names (RUSTSEC-2026-0194, high, fixed in 0.41.0)crates:ruzstd 0.7.3Decompression bomb in `ruzstd`: a tiny input can exhaust memory (OOM) (RUSTSEC-2026-0344, high, fixed in 0.9.1)
See 1 more
crates:quick-xml 0.38.4— RUSTSEC-2026-0195 (high), fixed in 0.41.0
Linux x86_64
You need first
- Runtimes:
Rust 1.85 or later - Needs the network
download install script
curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh -o /tmp/install.shinstall xh via script with XH_BINDIR
read_file /tmp/install.sh 2>&1 XH_BINDIR=$HOME/.local/bin sh /tmp/install.sh
Check that it works
xh --versionThe output should contain “xh 0.26.3”.
First thing to try
cat <<'PY' > /tmp/server.py
import http.server, json
class H(http.server.BaseHTTPRequestHandler):
def do_GET(self):
self.send_response(200)
self.send_header("Content-Type","application/json")
self.end_headers()
self.wfile.write(b'{"slideshow": {"title": "test"}}')
def do_POST(self):
length=int(self.headers.get('Content-Length',0))
body=self.rfile.read(length) if length else b''
self.send_response(200)
self.send_header("Content-Type","application/json")
self.end_headers()
resp=json.dumps({"received": json.loads(body) if body else None}).encode()
self.wfile.write(resp)
def log_message(self,*a,**k): pass
http.server.HTTPServer(("127.0.0.1", 8787), H).serve_forever()
PYpython3 /tmp/server.pyxh --ignore-stdin --print=b http://127.0.0.1:8787/json --pretty=noneWhat it does
- Send HTTP requests from terminalTested
- Serialize request data as JSONTested
- Translate requests to curl commandsTested
- Download response body to fileTested
How far pickfit got
Linux x86_64
- Installs
- Starts
- 4 of 4 features work
- Works offline
macOS and Windows: the project says it runs there; pickfit hasn’t tried it.
Good for
- Send a GET request
- Send a POST request with JSON body
- Download response body to file
An alternative to HTTPie, curlie and httpie-go.
How pickfit tested it
Each run starts from a clean machine and follows the steps above. How pickfit verifies
Linux x86_64
Its main function works
- Replayed from scratch
- Works offline
- Checked on 4 Nov 2026
- Version 0.26.3
Differences the test machine hit
- README: curl -sfL https://raw.githubusercontent.com/ducaale/xh/master/install.sh | sh
In the test: download script first, read it, then run with XH_BINDIR=$HOME/.local/bin sh /tmp/install.sh to avoid interactive prompt and to place binary on PATH - README: xh httpbin.org/json and xh httpbin.org/post name=ahmed age:=24
In the test: httpbin.org is not reachable/very slow in this box (timed out after 15s); verified against a local Python HTTP server on 127.0.0.1:8787 - README: send JSON data items directly
In the test: need --ignore-stdin when run non-interactively to avoid 'Request body (from stdin) and request data (key=value) cannot be mixed' error