Inspect redirect response
16-http-do-not-follow-redirects.yaml
HTTP(S)
What this example does
This example demonstrates inspect redirect response.
Checks and behavior
- Sends an GET request to http://127.0.0.1:8080/redirect.
- Checks allowed/denied HTTP status codes.
- Validates required, forbidden or matching HTTP headers.
Adapt example domains, addresses, credentials and thresholds to your environment before use.
YAML configuration
# Copyright (c) 2026 mati peterson. Maintainer: mati peterson <ipsonic@mailbox.org>. Project: https://ipsonic.com/probe/. Disclaimer: Provided AS IS, without warranty of any kind. Use at your own risk; validate checks and configurations before production use.
name: Inspect redirect response
url: http://127.0.0.1:8080/redirect
request:
method: GET
follow_redirects: false
tests:
status:
allow: [301, 302, 307, 308]
headers:
exists: [Location]