Announcing Hurl 1.6.0

41 points jcamiel

We're releasing Hurl 1.6.0, a simple HTTP cli tool built on top of libcurl and Rust.

Hurl allows running HTTP requests defined in a plain text format. It can be used to fetch data, or play a scenario (sequence of requests),
asserting responses along the way. With its textual format, it is aimed for both devops and developers. With its command-line usage/simple unique binary,
it is aimed for both local dev and continuous integration.

An Hurl sample:

GET https://example.org/books
  
HTTP/1.1 200
[Asserts]
jsonpath "$.validated" == true
jsonpath "$.books" count == 12
jsonpath "$.books[2].name" == "Dune"

In 1.6.0, we have added the following improvments:

  • simplify basic authentification:

Instead of computing an Authorization header, we can now use a [BasicAuth] section:

GET http://example.com/protected
[BasicAuth]
bob: secret
  • regex literal:

Before 1.6.0, metacharacters in pattern values should be escaped (like \d etc…). Now,
we can have Javascript-like regex literal:

GET https://sample.org/hello

HTTP/1.0 200
[Asserts]
jsonpath "$.date" matches /^\\d{4}-\\d{2}-\\d{2}$/
jsonpath "$.date" matches "^\\\\d{4}-\\\\d{2}-\\\\d{2}$"  # same without regex litteral
  • improve interactive mode
  • and fix bugs!

Git a try to Hurl, we'll be very happy to answer response on our project and get feedbacks!
If you like it, don't hesitate to give us a star!