Run and test HTTP requests with plain text.
open sourceApache-2.0self-hostablefree
Hurl runs HTTP requests defined in a simple plain-text format, chaining requests, capturing values and asserting on status, headers and bodies with JSONPath, XPath and other queries. It works for REST, GraphQL, SOAP and HTML, and its --test mode turns .hurl files into integration test suites for CI. Built in Rust on libcurl by Orange.
Ways to install
Package managers
Problems it solves
- write API integration tests as plain text files instead of code
- chain requests where the second uses a token from the first response
- assert on JSON fields of an HTTP response in CI
- Postman collections are hard to review in git
- smoke test my deployed API endpoints after each release
- test a GraphQL endpoint from the command line
- check HTML pages for expected content with XPath
- repeatable HTTP request files the whole team can version
Features
- plain-text request files
- captures and chaining
- asserts with JSONPath/XPath
- --test mode
- text, JUnit, TAP and HTML reports
- libcurl based
Capabilities
| Has a command line tool | plan not known |
|---|
Alternatives
The same job
These do what Hurl does.
- Bruno Open source, offline API client that keeps collections in Git
- Postman API platform for building, testing and sharing APIs
- HTTPie CLI Modern, user-friendly command-line HTTP client for the API era
- xh Friendly and fast tool for sending HTTP requests
