cookie 在 HTTP 协议中是如何传递的? [英] How are cookies passed in the HTTP protocol?
本文介绍了cookie 在 HTTP 协议中是如何传递的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
cookie 在 HTTP 协议中是如何传递的?
How are cookies passed in the HTTP protocol?
推荐答案
服务器在其响应头中发送以下内容以设置 cookie 字段.
The server sends the following in its response header to set a cookie field.
Set-Cookie:
name=
value
如果设置了 cookie,则浏览器会在其请求标头中发送以下内容.
If there is a cookie set, then the browser sends the following in its request header.
Cookie:
name=
value
有关详细信息,请参阅维基百科上的 HTTP Cookie 文章.
See the HTTP Cookie article at Wikipedia for more information.
这篇关于cookie 在 HTTP 协议中是如何传递的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文