CommandCross-platform

Whisper Chain

Follow HTTP Redirects and Show Each Hop

Traces the complete redirect chain of a URL, showing every hop from the original URL to the final destination. Perfect for debugging short links, affiliate links, or redirect loops.

curl -sIL -o /dev/null -w '%{url_effective}\n' https://bit.ly/example
curl -sIL https://bit.ly/example 2>&1 | grep -E '^HTTP|^location:'

Usage Notes

  • -L follows redirects automatically
  • -I fetches headers only (HEAD request)
  • -s silent mode (no progress bar)
  • -w custom output format
  • Use --max-redirs 10 to limit redirect depth

Warnings

  • Warning:Some redirects may require cookies or JavaScript to work properly
  • Warning:Watch out for redirect loops - use --max-redirs

Related Scroll Ideas

  • • Measure response time at each redirect
  • • Extract and validate SSL certificates in chain
  • • Check for mixed content (HTTP in HTTPS chain)