mirror of
https://github.com/tarampampam/error-pages.git
synced 2024-08-30 18:22:40 +00:00
d40e8879d1
* 🎨 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 |
||
---|---|---|
.. | ||
404.hurl | ||
code_502_default.hurl | ||
code_502_json.hurl | ||
code_502_xml.hurl | ||
healthz.hurl | ||
index.hurl | ||
metrics.hurl | ||
proxy_headers.hurl | ||
readme.md | ||
version.hurl | ||
x_code.hurl |
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