What does HTTP/1.1 302 mean exactly?

后端 未结 14 2507
礼貌的吻别
礼貌的吻别 2020-12-02 05:49

Some article I read once said that it means jumping (from one URI to another), but I detected this \"302\" even when there was actually no jumping at all!

14条回答
  •  清歌不尽
    2020-12-02 06:11

    From RFC 2616 (the Hypertext Transfer Protocol Specification):

    10.3.3 302 Found
    
       The requested resource resides temporarily under a different URI.
       Since the redirection might be altered on occasion, the client SHOULD
       continue to use the Request-URI for future requests.  This response
       is only cacheable if indicated by a Cache-Control or Expires header
       field.
    
       The temporary URI SHOULD be given by the Location field in the
       response. Unless the request method was HEAD, the entity of the
       response SHOULD contain a short hypertext note with a hyperlink to
       the new URI(s).
    

    Source:

    http://www.ietf.org/rfc/rfc2616.txt

提交回复
热议问题