[issue28378] urllib2 does not handle cookies with `,`

Grzegorz Sikorski report at bugs.python.org
Wed Oct 12 06:29:15 EDT 2016


Grzegorz Sikorski added the comment:

I attach example express/nodejs server which by default returns a cookie with the comma (see expiry time format). The output from the python test file I posted in previous message is:
```
python test.py 
cookie1=exampleCookie; Path=/, cookie2=cookie%20with%20comma; Max-Age=60; Path=/; Expires=Wed, 12 Oct 2016 10:24:06 GMT; HttpOnly; Secure
###################
X-Powered-By: Express
Set-Cookie: cookie1=exampleCookie; Path=/
Set-Cookie: cookie2=cookie%20with%20comma; Max-Age=60; Path=/; Expires=Wed, 12 Oct 2016 10:24:06 GMT; HttpOnly; Secure
Date: Wed, 12 Oct 2016 10:23:06 GMT
Connection: close
Content-Length: 0
```

----------
Added file: http://bugs.python.org/file45065/test.js

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28378>
_______________________________________


More information about the Python-bugs-list mailing list