From: Senthil Kumaran Date: Sun, 22 Apr 2012 02:27:22 +0000 (+0800) Subject: Update 2.7 docs about legal characters allowed in Cookie name X-Git-Tag: v2.7.4rc1~892^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea17082c25a4835975537373454097b8dd054692;p=python Update 2.7 docs about legal characters allowed in Cookie name --- diff --git a/Doc/library/cookie.rst b/Doc/library/cookie.rst index 480dffa66e..52c897579d 100644 --- a/Doc/library/cookie.rst +++ b/Doc/library/cookie.rst @@ -22,8 +22,14 @@ cookie value. 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::