Hurl logo

Hurl

Command line tool that runs and tests HTTP requests defined in plain text files, with request chaining, captures, asserts, and CI reports.

installยท Homebrew

Hurl is a command line tool that runs HTTP requests written in a plain text format. Each .hurl file lists requests with their method, URL, headers, and body, and can chain multiple requests in sequence. Values can be captured from a response, for example with XPath, and reused in later requests. One example captures a CSRF token from a page and submits it in a login form.

Hurl also works as an HTTP test tool. The [Asserts] section evaluates queries and predicates on the status code, response headers, and body. It supports XPath and JSONPath queries, regex matching, item counts, response duration, and sha256 checks on response bytes. The README shows samples for REST/JSON APIs, HTML, GraphQL, and SOAP. Other documented features include [Query], [Form], and [BasicAuth] sections, polling and retry, delaying or skipping requests, redacting secrets, AWS Signature V4, exporting curl commands, and proxy support.

Hurl is a single Rust binary whose HTTP engine is libcurl. By default it prints the last response like curl. The --test option switches to test-oriented output. It accepts files or directories and searches directories recursively for .hurl files. For CI/CD it produces text, JUnit, TAP, HTML, and JSON reports. Developers, QA engineers, and DevOps teams who test or script HTTP APIs would use it. Installation packages are available for Linux, macOS, Windows, and FreeBSD, as well as Cargo, npm, conda-forge, and Docker.

Installation

# via Homebrew
brew install hurl

Hurl demo

Hurl HTML report

Alternatives & related tools

add a badge to your README

Maintain Hurl? Show that it's featured on trmn. The badge links back to this page.

Featured on trmn
Markdown
[![Featured on trmn](https://www.trmn.sh/badge/hurl.svg)](https://www.trmn.sh/tools/hurl?utm_source=badge)
HTML
<a href="https://www.trmn.sh/tools/hurl?utm_source=badge"><img src="https://www.trmn.sh/badge/hurl.svg" alt="Featured on trmn" height="20"></a>