gpt4 book ai didi

http - 一个 HTTP 请求中是否允许多个 Cookie header ?

转载 作者:可可西里 更新时间:2023-11-01 15:03:32 25 4
gpt4 key购买 nike

通常,浏览器将 cookie 分组到单个 Cookie header 中,例如:

Cookie: a=1; b=2

标准是否允许将这些作为单独的 header 发送,例如:

Cookie: a=1
Cookie: b=2

还是他们总是必须在同一条线上?

最佳答案

在查找有关该主题的详细信息时偶然发现此页面。引自 HTTP 状态管理机制RFC 6265应该让事情更清楚:

5.4。 Cookie header

When the user agent generates an HTTP request, the user agent MUSTNOT attach more than one Cookie header field.

看起来使用多个 Cookie header ,实际上是禁止的!

关于http - 一个 HTTP 请求中是否允许多个 Cookie header ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16305814/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com