urllib2 redirect error

dieter dieter at handshake.de
Wed Sep 3 08:29:44 CEST 2014

Steven D'Aprano <steve at pearwood.info> writes:
> ...
> I'm not an expert, but that sounds like a fault at the server end. I just
> tried it in Chrome, and it worked, and then with wget, and I get the same
> sort of error:
> ...
> Sounds like if the server doesn't recognise the browser, it gets 
> confused and ends up in a redirect loop.
> You could try setting the user-agent and see if that helps:

Excellent analysis and advice.

More information about the Python-list mailing list