Redirect Chain Test

Test your scraper's ability to follow HTTP redirect chains, detect circular loops, and handle meta refresh redirects.

Test Passing Criteria
301 Permanent Redirect Chain
10 hops · Type: 301
Permanent

A chain of 10 permanent (301) redirects. Your scraper must follow each Location header until it reaches the final destination.

Start Chain/api/test/redirects/chain?step=1&max=10&type=301
302 Temporary Redirect Chain
10 hops · Type: 302
Temporary

A chain of 10 temporary (302) redirects. Similar to 301 but uses temporary redirect status codes. Some scrapers treat these differently.

Start Chain/api/test/redirects/chain?step=1&max=10&type=302
Circular Redirect Loop
3 hops · Type: LOOP
Loop

A 3-step circular redirect loop: step 1 redirects to step 2, step 2 to step 3, and step 3 back to step 1. Your scraper must detect the cycle and break out.

Start Chain/api/test/redirects/chain?step=1&max=3&type=loop
Meta Refresh Chain
5 hops · Type: META
HTML

A chain of 5 HTML pages using <meta http-equiv="refresh"> tags instead of HTTP redirect headers. Your scraper needs to parse HTML and follow the meta refresh URL.

Start Chain/api/test/redirects/chain?step=1&max=5&type=meta
Target Endpoint

All chains (except the loop) eventually redirect to the target endpoint, which returns a JSON response confirming completion:

GET /api/test/redirects/target?type=301

{
  "completed": true,
  "type": "301",
  "secret": "sm-redirect-completed-301",
  "message": "You successfully followed the redirect chain!"
}