HTTP Redirection

According to the HTTP specs, there are a number of HTTP codes used to redirect browser clients.
 
  • 301 Moved Permanently: Permanent redirect. Document has moved permanently, future requests to use the redirected URL instead. Response is cacheable. Modern browsers change the HTTP method to a GET with the exception of IE (which preserves HTTP HEAD, DELETE method).
  • 302 Found: Temporary redirect. To be superseded by 303 and 307. Response may be cached if headers allow for it. Most modern browsers treat this as 303 with the exception of IE (which treats it as 307).
  • 303 See Other: Request should be redirected to a GET regardless of the original request method. The response must not be cached. Supported by all modern browsers.
  • 307 Temporary Redirect: Temporary redirect. Request should be redirected to the redirected URL. The original request method is to be preserved and a POST request should be re-posted. Response may be cached if headers allow for it. Supported by all modern browsers except Opera 11.5. If the request method is non-idempotent (e.g. POST, PUT, DELETE), Firefox and Opera would prompt the user for confirmation that the form data would be resent to another location.
Tests on existing browser found here.
Some references: HTTP specshere

Comments

Popular posts from this blog

Understanding ITIL Service Management the UML way…

How to depict (Professional-Looking) Logical Network Diagrams in Astah