Redirect Chain Test
Test your scraper's ability to follow HTTP redirect chains, detect circular loops, and handle meta refresh redirects.
A chain of 10 permanent (301) redirects. Your scraper must follow each Location header until it reaches the final destination.
/api/test/redirects/chain?step=1&max=10&type=301A chain of 10 temporary (302) redirects. Similar to 301 but uses temporary redirect status codes. Some scrapers treat these differently.
/api/test/redirects/chain?step=1&max=10&type=302A 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.
/api/test/redirects/chain?step=1&max=3&type=loopA 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.
/api/test/redirects/chain?step=1&max=5&type=metaAll 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!"
}