Berker Peksag added the comment:
This was fixed in issue 16611 (for 3.3 and 3.4) and there is a open issue for
2.7: issue 19870. I'm closing this one as a duplicate of issue 19870, because
it has a patch.
from http import cookies
C = cookies.SimpleCookie()
C.load(chips=ahoy; vienna=finger;
Changes by Mark Lawrence breamore...@yahoo.co.uk:
--
nosy: -BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028088
___
___
Senthil Kumaran orsent...@gmail.com added the comment:
Revisiting this issue.
- Cookie: should contain name=value pairs
- Set-Cookie: header can contain a single word like 'secure'
The current design is along the same lines only.
In the original comment, the request had asked to document the
Changes by A.M. Kuchling li...@amk.ca:
--
assignee: akuchling -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028088
___
___
Python-bugs-list
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Any interest in this?
--
nosy: +BreamoreBoy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1028088
___
John J Lee [EMAIL PROTECTED] added the comment:
I was responding to your comment of 2008-10-08 03:08, not to the opening
comment. I already responded to the opening comment.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1028088
Andres Riancho [EMAIL PROTECTED] added the comment:
- Problem: The secure flag of cookies is ignored by the load method.
- Why is it related to this issue? Because the secure flag is a name
without a value:
pie=good; other=thing; secure
- Why is it bad?
Because the RFC says that we should
John J Lee [EMAIL PROTECTED] added the comment:
The Cookie: header does not have a secure flag (The Set-Cookie: header
does).
I don't strongly object to the issue identified in the original comment
being fixed.
___
Python tracker [EMAIL PROTECTED]
John J Lee [EMAIL PROTECTED] added the comment:
You haven't said what the specific problem is. Note that the
SimpleCookie class really represents a set of cookies, and the Morsel
class represents a single cookie. It seems that setting special
value-less cookie-attributes like secure works:
Andres Riancho [EMAIL PROTECTED] added the comment:
My problem, and the problem if the original bug reporter (sirilyan) is
that the load method ignores names that don't have values. Quoting the
original bug report:
import Cookie
q = Cookie.SimpleCookie(pie=good; broken;
other=thing)
q
Andres Riancho [EMAIL PROTECTED] added the comment:
The RFC I'm talking about is: http://www.ietf.org/rfc/rfc2109.txt
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1028088
___
Andres Riancho [EMAIL PROTECTED] added the comment:
Sorry to bother you guys after so much time, but I think that there is
at least one bit of the RFC that isn't respected by this name=value
thing... If we look at the RFC we'll see this:
cookie-av = Comment = value
12 matches
Mail list logo