http 307 Temporary Redirect

Discussion in 'Windows Error Code, Crashes, BSOD, and Hangs' started by securityhope, Feb 9, 2017.

Tags:
  1. securityhope

    securityhope Administrator Staff Member

    Joined:
    Aug 3, 2016
    Messages:
    1,241
    Likes Received:
    0
    Trophy Points:
    36
    3×× Redirection

    307 Temporary Redirect

    The target resource resides temporarily under a different URI and the user agent MUST NOT change the request method if it performs an automatic redirection to that URI.

    Since the redirection can change over time, the client ought to continue using the original effective request URI for future requests.

    The server SHOULD generate a Location header field in the response containing a URI reference for the different URI. The user agent MAY use the Location field value for automatic redirection. The server's response payload usually contains a short hypertext note with a hyperlink to the different URI(s).

    Note: This status code is similar to 302 Found, except that it does not allow changing the request method from POST to GET. This specification defines no equivalent counterpart for 301 Moved Permanently (RFC7238, however, proposes defining the status code 308 Permanent Redirect for this purpose).
    307 Code References

    Rails HTTP Status Symbol :temporary_redirect
    Go HTTP Status Constant http.StatusTemporaryRedirect
    Symfony HTTP Status Constant Response::HTTP_TEMPORARY_REDIRECT
    Python2 HTTP Status Constant httplib.TEMPORARY_REDIRECT
    Python3 HTTP Status Constant http.client.TEMPORARY_REDIRECT
    Python3.5 HTTP Status Constant http.HTTPStatus.TEMPORARY_REDIRECT
     
    Last edited: Feb 9, 2017

Share This Page

Share