Hurl file should be encoded in UTF-8, without byte order mark to the beginning (while Hurl ignores the presence of a byte order mark rather than treating it as an error)
Hurl file extension is
Comments begins with
# and continue until the end of line. Hurl file can serve as
a documentation for HTTP based workflows so it can be useful to be very descriptive.
# A very simple Hurl file # with tasty comments... GET https://www.sample.net x-app: MY_APP # Add a dummy header HTTP/1.1 302 # Check that we have a redirection [Asserts] header "Location" exists header "Location" contains "login" # Check that we are redirected to the login page
String can include the following special characters:
GET http://api.example.com HTTP/1.1 200 # The following assert are equivalent: [Asserts] jsonpath "$.slideshow.title" == "A beautiful ✈!" jsonpath "$.slideshow.title" == "A beautiful ✈!"
In some case, (in headers value, etc..), you will also need to escape # to distinguish from a comment. In the following example:
GET http://api.example.com x-token: BEEF #STEACK # Some somment HTTP/1.1 200
We’re sending a header
x-token with value