New in 2.4: Test runs you can trust See what's new →

Redirects

Redirect chains, every redirect status, a local-only redirect-to, and an infinite loop for max-redirect tests. Every chain ends at /api/echo so the client can see the final method and body it arrived with.

Example request

Starts an infinite redirect loop between /loop and /loop/back. Full reference and a Send button.

cURL
curl -X GET "https://api.testingapis.com/api/redirect/loop"
Run in Studio
Response · 302 Found
{
  "status": 302,
  "statusText": "Found",
  "location": "/api/redirect/loop/back",
  "remaining": null,
  "keepsMethod": false
}