Grzegorz Sikorski added the comment:

I was debugging this and found out that urllib2 works more-less correct. The 
only problem I would see is referring to the header by 
`res.headers['Set-Cookie']`, as it returns comma-separated string, which cannot 
be processed properly in case the cookie value includes the `,` (see attached 
example). IMO this should return a tuple instead of single string, but as I 
said is minor.

More issues I found with actual `requests` library, as it does not send cookies 
if the server response with 302 (redirect). Again, this may not be related to 
the urllib at all.

----------
Added file: http://bugs.python.org/file45064/test.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28378>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to