HTTP 302
HTTP |
Persistence · Compression · HTTP Secure |
Headers |
ETag · Cookie · Referrer · Location |
Status codes |
301 Moved permanently |
302 Found |
303 See Other |
403 Forbidden |
404 Not Found |
The HTTP response status code 302 Found is the most common way of performing a redirection[citation needed]
It is an example of industry practice contradicting the standard HTTP/1.0 specification (RFC 1945), which 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[citation needed], i.e. 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[citation needed].
This status code should be used with the location header.
Example
Client request:
GET /index.html HTTP/1.1 Host: www.wikipedia.org
Server response:
HTTP/1.1 302 Found Location: http://www.wikipedia.org/index.php
See also
External links
- RFC 2616 (HTTP 1.1)
- RFC 1945 (HTTP 1.0)
Stub icon | This World Wide Web-related article is a stub. You can help Wikipedia by expanding it. |
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...