Hurl 1.7.0, test your APIs with plain text and curl
Hi,
We're happy to release a new version of Hurl. Hurl is a command line tool powered by curl, that runs HTTP requests defined in a simple plain text format:
# Get home:
GET https://example.org
HTTP/1.1 200
[Captures]
csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)"
# Do login!
POST https://example.org/login?user=toto&password=1234
X-CSRF-TOKEN:
HTTP/1.1 302
Hurl can be used to get data like curl, or as an integration testing tool for JSON/XML HTTP apis / HTML content.
In this new version, we've added the following improvements:
verbose output: we've added more color to Hurl --verbose output, and also added --very-verbose option to output request and response bodies
request options: command-line options such as --location (follow HTTP redirection), --verbose, --insecure etc... can now be applied
to a particular request with an [Options] sections:GET https://example.org # An options section, each option is optional and applied only to this request... [Options] cacert: /etc/cert.pem # a custom certificate file compressed: true # request a compressed response insecure: true # allows insecure SSL connections and transfers location: true # follow redirection for this request max-redirs: 10 # maximum number of redirections verbose: true # allow verbose output very-verbose: true # allow more verbose outputusing Hurl with node projects: Hurk is now available on npm to be easily integrated in various JavaScript project. Hurl on npm is a thin JavaScript wrapper around the native Rust binary.
support for XML namespaces in XPath
other various improvements and bug fixes,
More information:
We'll be happy to have feedbacks on Hurl !