|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[ curl-Bugs-3349227 ] secure attribute in cookie does not work with equals sign
From: SourceForge.net <noreply_at_sourceforge.net>
Date: Sun, 03 Jul 2011 14:29:41 -0500
Bugs item #3349227, was opened at 2011-07-01 20:05
Please note that this message will contain a full copy of the comment thread,
Initial Comment:
Set-Cookie: secure_without_equals=1; secure
Then suppose the server is accessed with curl:
curl --cookie-jar cookies-curl.txt https://SERVER
The resulting cookie jar is as follows:
With most other browsers and HTTP clients, both cookies are treated as secure. For example, with wget:
wget --save-cookies=cookies-wget.txt --keep-session-cookies -q -O- https://SERVER
This appears to be a problem in real-world applications; e.g., Microsoft servers sometimes return a Set-Cookie header with "secure=" in it.
$ curl -V
----------------------------------------------------------------------
Comment By: gnombat (gnombat)
Message:
http://tools.ietf.org/html/rfc6265
The grammar in section 4.1.1 seems to allow only "Secure" (without
However, section 5.2 seems to allow equals with a "possibly empty"
The user agent MUST use an algorithm equivalent to the following
...
4. If the cookie-av string contains a %x3D ("=") character:
The (possibly empty) attribute-name string consists of the
----------------------------------------------------------------------
Comment By: gnombat (gnombat)
Message:
You will need an actual Microsoft "Live ID" (or whatever they are calling
As far as browsers go, I tested Firefox, IE, Opera, Chrome, and Safari,
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
Do most browsers handle this?
----------------------------------------------------------------------
You can respond by visiting:
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info