Favicon of xh

xh

Send HTTP requests from the command line with HTTP/2 support, colorful output, and JSON handling. A faster, more portable alternative to curl with a single static binary.

xh is a fast and user-friendly CLI tool for sending HTTP requests, designed as a modern alternative to curl. Built with performance and portability in mind, it delivers the same core functionality you expect while being shorter to type and quicker to execute.

Key capabilities include:

  • HTTP/2 support for faster, multiplexed connections
  • Colorful, formatted output with multiple styling themes (solarized, monokai, fruity)
  • JSON serialization by default with automatic deserialization
  • Verbose mode to inspect full request and response details
  • Curl command translation to convert requests into curl syntax
  • Form data and multipart support for complex request bodies
  • Authentication methods including basic, bearer, and digest
  • Session management to persist cookies and headers across requests
  • Download capabilities with resume support for interrupted transfers
  • Proxy and SSL configuration for enterprise environments
  • Single static binary that works across Linux, macOS, and Windows

Whether you're testing APIs, running load tests, or experimenting with HTTP requests, xh provides a faster and more portable solution than traditional tools. Installation is straightforward through package managers like Homebrew, Cargo, or direct binary download, making it accessible regardless of your operating system.

Features

JSON outputScriptableTrue color

Media

asciinema

Pros

4
  • Faster and more portable than curl
  • Colorful and user-friendly output
  • Supports HTTP/2
  • Handles JSON requests and responses

Related tools

Categories:

Share:

Auto-fetched .

Recent releases

Similar to xh

Favicon

 

  
 
Favicon

 

  
 
Favicon