[issue1570255] redirected cookies
Paul Suh
report at bugs.python.org
Sat May 31 02:41:48 CEST 2014
Paul Suh added the comment:
I found a repeatable, public test case:
http://www.macupdate.com/download/26915/ScreenFlow-4.5.1.dmg
Using urllib2 with the following code leads to a redirect loop:
#!/usr/bin/python
import urllib2
h = urllib2.HTTPHandler(debuglevel=1)
h2 = urllib2.HTTPSHandler(debuglevel=1)
opener = urllib2.build_opener(h)
opener2 = urllib2.build_opener(h2)
urllib2.install_opener(opener)
urllib2.install_opener(opener2)
request = urllib2.Request(url="http://www.macupdate.com/download/26915/ScreenFlow-4.5.1.dmg")
request.add_header( "User-Agent", "foo" )
url_handle = urllib2.urlopen(request)
----------
nosy: +Paul.Suh
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1570255>
_______________________________________
More information about the Python-bugs-list
mailing list