error-pages/test/hurl
2022-02-23 11:09:54 +05:00
..
404.hurl Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
code_502_default.hurl Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
code_502_json.hurl Changes after merging 2022-01-31 10:46:51 +05:00
code_502_xml.hurl Changes after merging 2022-01-31 10:46:51 +05:00
healthz.hurl Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
index.hurl Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
metrics.hurl Prometheus metrics implemented (#54) 2022-01-28 20:42:08 +05:00
proxy_headers.hurl proxy headers (#67) 2022-02-23 11:09:54 +05:00
readme.md Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
version.hurl Go templates support, XML, JSON, Ingress (#49) 2022-01-27 17:29:49 +05:00
x_code.hurl Fix for the X-Format header (#51) 2022-01-28 12:53:35 +05:00

Hurl

Hurl is a command line tool that runs HTTP requests defined in a simple plain text format.

How to use

It can perform requests, capture values and evaluate queries on headers and body response. Hurl is very versatile: it can be used for both fetching data and testing HTTP sessions.

# Get home:
GET https://example.net

HTTP/1.1 200
[Captures]
csrf_token: xpath "string(//meta[@name='_csrf_token']/@content)"

# Do login!
POST https://example.net/login?user=toto&password=1234
X-CSRF-TOKEN: {{csrf_token}}

HTTP/1.1 302