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 <rep...@bugs.python.org> <http://bugs.python.org/issue1570255> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com