HTTP 302如何工作? [英] How does HTTP 302 work?

查看:121
本文介绍了HTTP 302如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HTTP 302如何工作?我想知道内部结构

How does HTTP 302 work? I would like to know the internals

推荐答案

你的意思是浏览器如何处理它?服务器发送 302 代码以及 Location 标头,浏览器请求<$ c指定的新URI c $ c>位置标题。

You mean how do browsers handle it? The server sends a 302 code along with a Location header, and the browser requests the new URI specified by the Location header instead.

301(永久移动)不同,浏览器继续使用原始URI来执行请求,以防 302 代码消失

Unlike 301 (Moved Permanently), the browser continues to use the original URI to do requests, in case the 302 code goes away

这篇关于HTTP 302如何工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆