Urllib2 upgrade is breaking urlopen()

John J. Lee jjl at pobox.com
Fri Jan 23 07:45:50 EST 2004


dj00302003 at yahoo.com (Jay Davis) writes:

> We have a lot of simple code using 'urllib', that basically
> just goes out and opens and read()'s some http url.  Very basic,
> ten line scripts, and they work fine with urllib.
> 
> We want to use urllib2 for everything, though, but when we
> do we get: 
[...]
> urllib2.HTTPError: HTTP Error 302: The HTTP server returned a redirect
> error that would lead to an infinite loop.
> The last 30x error message was:
> Found

Which version of Python are you using?

It might also help if you can give a publicly-accessible URL that
triggers the problem (mail it to me privately if you prefer).


John



More information about the Python-list mailing list