jspωiki
HTTP 307

Overview#

HTTP 307 ([Temporary Redirect]) is a Redirection HTTP Response HTTP Status Code that indicates that the resource requested has been temporarily moved to the URL given by the Location headers.

The method and the body of the original HTTP Request are reused to perform the redirected request. In the cases where you want the method used to be changed to HTTP GET, use HTTP 303.

The difference between HTTP 307 and HTTP 302 is that HTTP 307 guarantees that the HTTP Method and the body will not be changed when the redirected request is made. With HTTP 302, some old clients were incorrectly changing the method to HTTP GET: the behavior with non-GET methods and 302 is then unpredictable on the Web, whereas the behavior with HTTP 307 is predictable. For HTTP GET requests, their behavior is identical.

More Information#

There might be more information for this subject on one of the following: