Skip to content
Karl Ostendorf
Go back

hurl HTTP tester

Hurl is an HTTP testing tool written in Rust which can test http responses for status code, headers, and even content. Requests can be chained together to test multiple endpoints.

Example:

hurl --test example.hurl

Here is the example.hurl which checks that a website supports conditional GETs.

GET https://hurl.dev/

HTTP/2 *
[Asserts]
status == 200
[Captures]
lastModified: header "Last-Modified"
etag: header "ETag"

GET https://hurl.dev/
If-Modified-Since: {{lastModified}}
If-None-Match: {{etag}}

HTTP/2 *
[Asserts]
status == 304


Previous Post
dayone2md
Next Post
go-flags