// IPSonic MONITORING TOOLKIT / DOCUMENTATION
ipsonic-probe rainbow unicorn

ipsonic-probe ✦

YAML-driven infrastructure validation. Platform-agnostic checks. Zero cloud dependencies.

DNSTCPHTTP / TLSYAML CONFIGCLI FIRSTKISSOFFLINE READY

Part of the ipsonic project ↗ Visit the main website

Redirect policy

31-redirect-validation.yaml

HTTP(S)

What this example does

This example demonstrates redirect policy.

Checks and behavior

  • Sends an GET request to https://example.com/old.
  • Validates redirect behavior and destination constraints.

Adapt example domains, addresses, credentials and thresholds to your environment before use.

YAML configuration

Download original YAML

name: Redirect policy
url: https://example.com/old
request:
  follow_redirects: true
tests:
  redirects:
    max_count: 2
    require_https: true
    allowed_hosts:
    - example.com
    - www.example.com
    final_url: https://www.example.com/new