TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Starts an infinite redirect loop between /loop and /loop/back

GEThttps://api.testingapis.com/api/redirect/loopSign in to see this endpoint's URL

Starts an infinite redirect loop between /loop and /loop/back.

Use it to test a client's maximum-redirect limit.

Responses

200
OK
302
Redirect to /api/redirect/loop/back.Redirect to ….

Example

Request
curl -X GET "https://api.testingapis.com/api/redirect/loop" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response302 Found
Location: /api/redirect/loop/back

{
  "status": 302,
  "statusText": "Found",
  "location": "/api/redirect/loop/back",
  "remaining": null,
  "keepsMethod": false
}

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.