Semicolon ;
, the Cookie:
string or some other string?
相关问题
- Angular RxJS mergeMap types
- Google Apps Script: testing doPost() with cURL
- How to instantiate Http service in main.ts manuall
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- PHP Empty $_POST
相关文章
- C#使用http访问网络,有办法用指定网卡访问网络嘛?
- Is there a size limit for HTTP response headers on
- Is a unicode user agent legal inside an HTTP heade
- git: retry if http request failed
- What is the definition of HTTP_X_PURPOSE?
- Flutter - http.get fails on macos build target: Co
- Why does Google Chrome NOT use cached pages when I
- C# HttpClient.SendAsync always returns 404 but URL
The answer is a comma
,
sign.In section 4.2.2 of RFC 2109 there's this specification of
Set-Cookie
headerwith the following statement Informally, the Set-Cookie response header comprises the token Set-Cookie:, followed by a comma separated list of one or more cookies. (Formally meaning of
#
in the above notation is defined in RFC 733 in section A. NOTATIONAL CONVENTIONS, point 5Yes, RFC 2109 was obsoleted by RFC 2965, which in turn was obsoleted by RFC 6265.
No, it doesn't change anything in this context as
Set-Cookie
foldingInspecting cookies in an HTTP request
The
Cookie:
header has the following syntax:Hence individual cookies are separated with the semicolon.
Setting cookies in an HTTP response
On the other hand, when setting a cookie in the response, there one cookie per the
Set-Cookie:
header:To set multiple cookies the
Set-Cookie
header is repeated in an HTTP response.Notes:
Cookie2
andSet-Cookie2
which were abandoned.Set-Cookie
(orSet-Cookie2
) headers into one. However, this folding is not recommended by the latest RFC 6265 spec.