HTTP 302 Found

A loose patch lead temporarily reaches a spare server while the original port remains available

HTTP 302 Found sends the client to a different URI temporarily. A server normally supplies that address in Location. Future requests can continue to use the original URI.

Why a browser lands on a login page

A route that requires a session can return 302 to a sign-in page. Your regular browser and a fresh command-line client may receive different results because they carry different cookies. Capture the original status and redirection target before evaluating the page the browser eventually displays.

Testing the URL through a proxy

TestMyProxies shows the 302 step. Check whether the endpoint requires authentication or redirects every visitor to another public route. For write requests, some clients change POST to GET when following 302. If you operate the route and it needs to preserve the request method, see 307 Temporary Redirect.

A redirect that explains a proxy test result

> GET /account/downloads HTTP/1.1
< HTTP/1.1 302 Found
< Location: /sign-in?return=%2Faccount%2Fdownloads

This result makes sense for a client with no login session. A browser that follows the redirect can show a familiar sign-in page with a final 200. If a normal browser session opens the download and a fresh proxy test receives 302, compare the status and Location before comparing the page body. Confirm the service’s intended session requirements with a known test account when appropriate.

Look at the next response when the redirect repeats

Write down each requested URL, returned status and next location. If the sequence alternates between the same sign-in and account pages, check the session cookie’s host and path and whether the public scheme reaches the application correctly. If a single 302 points at an unexpected host, inspect the component that built that location. A fresh profile gives you a clean view of the first request when existing browser state masks it.

RFC 9110.

All HTTP status codes · All proxy testing guides · Open the proxy tester