(original) (raw)
changeset: 76464:d3b0845a9253 branch: 3.2 parent: 76440:cdcc6b489862 user: Senthil Kumaran senthil@uthcode.com date: Sun Apr 22 10:30:17 2012 +0800 files: Doc/library/http.cookies.rst description: issue2193 - Update 3.2 docs about legal characters allowed in Cookie name diff -r cdcc6b489862 -r d3b0845a9253 Doc/library/http.cookies.rst --- a/Doc/library/http.cookies.rst Fri Apr 20 21:42:49 2012 +0100 +++ b/Doc/library/http.cookies.rst Sun Apr 22 10:30:17 2012 +0800 @@ -17,8 +17,14 @@ The module formerly strictly applied the parsing rules described in the :rfc:`2109` and :rfc:`2068` specifications. It has since been discovered that -MSIE 3.0x doesn't follow the character rules outlined in those specs. As a -result, the parsing rules used are a bit less strict. +MSIE 3.0x doesn't follow the character rules outlined in those specs and also +many current day browsers and servers have relaxed parsing rules when comes to +Cookie handling. As a result, the parsing rules used are a bit less strict. + +The character set, :data:`string.ascii_letters`, :data:`string.digits` and +``!#$%&'*+-.^_`|~`` denote the set of valid characters allowed by this module +in Cookie name (as :attr:`~Morsel.key`). + .. note:: /senthil@uthcode.com