|
|
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: Tue, 09 Aug 2011 15:40:41 +0200
Bugs item #3349227, was opened at 2011-07-02 03: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: Daniel Stenberg (bagder)
Message:
To try it out, you either checkout/update your git clone:
or you try tomorrow's daily snapshot: http://curl.haxx.se/snapshots/
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
We have a patch being discussed on the mailing list for fixing this
----------------------------------------------------------------------
Comment By: Vignesh Saravanai (svignesh)
Message:
All scripts using curl to automate live.com got broken.
I was trying to figure out a work around. Deleting cookie stored in memory
IMHO, we need an interface to delete/update a cookie in curl.
Thanks,
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Message:
----------------------------------------------------------------------
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