error-pages/test/hurl
Pаramtamtаm d40e8879d1
feat: Non-existing pages now return styled 404 status page (with 404 status code) (#189)
* 🎨 style(CHANGELOG.md): add UNRELEASED section
🔧 chore(notfound/handler.go): refactor to use core.RespondWithErrorPage
🔧 chore(http/server.go): pass config, templatePicker, renderer and options to notfoundHandler
🔧 chore(hurl/404.hurl): update test to expect HTML response instead of plain text

* 📝 docs(CHANGELOG.md): fix typo in changed section

* 🔥 chore(CHANGELOG.md): release version 2.22.0
🔥 chore(flags.go): remove unused code for serve command
2023-04-07 14:42:00 +04:00
..
404.hurl feat: Non-existing pages now return styled 404 status page (with 404 status code) (#189) 2023-04-07 14:42:00 +04: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