
|
|
It has been suggested that this article or section be merged with List of HTTP status codes . (Discuss) |
| HTTP |
| Persistence · Compression · SSL |
| Headers |
| ETag · Cookie · Referer |
| Status codes |
| 200 OK |
| 301 Moved permanently |
| 302 Found |
| 303 See Other |
| 403 Forbidden |
| 404 Not Found |
|
This box: view • talk • edit
|
The HTTP response status code 302 Found is the most common way of performing a redirection.
It is an example of industrial practice contradicting the standard. HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect (the original describing phrase was "Moved Temporarily"), but popular browsers implemented it as a 303 See Other, ie. changing the request type to GET regardless of what it had been originally. Therefore, HTTP/1.1 added status codes 303 and 307 to disambiguate between the two behaviours. However, the majority of Web applications and frameworks still use the 302 status code as if it were the 303.
This status code should be used with the location header.
GET /index.html HTTP/1.1 Host: www.example.com
HTTP/1.1 302 Found Location: http://www.wikipedia.org/index.php
| This World Wide Web-related article is a stub. You can help by expanding it. |
Why are we here?
All text is available under the terms of the GNU Free Documentation License
This page is cache of Wikipedia. History