HTTP

xh – fast and friendly command-line HTTP client

xh is a command-line HTTP client designed for developers who need a convenient way to send requests and inspect responses. Its syntax is inspired by HTTPie, with an emphasis on fast startup, efficient execution and straightforward interaction with web services.

The program supports common HTTP operations, allowing users to specify methods, URLs, request headers, query parameters and data directly on the command line. It presents responses in a readable format, including formatted JSON and colourized output.

xh is useful for exploring APIs, testing endpoints, downloading resources and reproducing HTTP requests during development. Its command syntax is particularly convenient for routine operations that would otherwise require more verbose options.

The software can also translate requests into equivalent curl commands, helping users move between tools or incorporate tested requests into existing scripts.

This is free and open source software.

Key Features

  • Provides concise syntax for sending HTTP requests.
  • Supports GET, POST, PUT, PATCH, DELETE and custom methods.
  • Allows request headers and query parameters to be specified directly.
  • Supports JSON bodies with typed values.
  • Handles form data and file uploads.
  • Formats and colourizes HTTP responses.
  • Supports HTTP/2 connections.
  • Provides authentication and proxy options.
  • Supports persistent sessions and cookies.
  • Can download responses directly to files.
  • Accepts request data through standard input.
  • Translates requests into equivalent curl commands.
  • Provides concise help output and additional detailed command documentation.
  • Supports custom user-agent headers.
  • Offers request and response inspection for API debugging.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/ducaale/xh
Support:
Developer: Mohamed Daahir and contributors
License: MIT License

xh is written in Rust. Learn Rust with our recommended free books and free tutorials


Related Software

Alternatives to curl
Wget2Successor of Wget
WgetMakes retrieving large files or mirroring entire web or FTP sites easy
aria2Multi-protocol and multi-source command-line download utility
HTTPieHTTP client with an intuitive user interface
curlieThe power of curl, the ease of use of httpie
xhFast and friendly tool for sending HTTP requests
hurlRun and test HTTP requests with plain text
TerminusDMUser-friendly terminal interface for managing your downloads efficiently
getpartyHTTP download manager with multi-parts
RestishCLI for interacting with REST-ish HTTP APIs
PostingTerminal-based HTTP client for developing and testing APIs
SlumberTerminal-based HTTP client
Alternatives to Wget
Wget2Successor of Wget
curlTool and library for transferring data with URLs
aria2Multi-protocol and multi-source command-line download utility
HTTPieHTTP client with an intuitive user interface
curlieThe power of curl, the ease of use of httpie
xhFast and friendly tool for sending HTTP requests
hurlRun and test HTTP requests with plain text
TerminusDMUser-friendly terminal interface for managing your downloads efficiently
getpartyHTTP download manager with multi-parts
SurgeDownload manager built in Go
aria2tuiTUI client for the aria2c download utility
gosh-dl-cliModern command-line download manager built on top of the gosh-dl engine
AxelLightweight CLI download accelerator
Command line HTTP clients
HTTPieCommand line interface, cURL-like tool for humans
aria2Multi-protocol and multi-source command-line download utility
Wget2Successor of Wget
PostingTerminal-based HTTP client for developing and testing APIs
hurlRun and test HTTP requests with plain text
curlCommand line tool for transferring data with URL syntax. Transfer library too
axelCommand-line download accelerator
xhFast and friendly tool for sending HTTP requests
WgetRetrieves content from web servers
RestishCLI for interacting with REST-ish HTTP APIs
curlieThe power of curl, the ease of use of httpie
SlumberTerminal-based HTTP client
TerminusDMUser-friendly terminal interface for managing your downloads efficiently.
getpartyHTTP download manager with multi-parts

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted