urllib2 redirect error

Sumit Ray sumitbu.ray at gmail.com
Sat Sep 6 18:24:26 CEST 2014


Steven,

Thank you! User advice was on point.

Sumit


On Tue, Sep 2, 2014 at 11:29 PM, dieter <dieter at handshake.de> wrote:

> 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.
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20140906/f33a024f/attachment.html>


More information about the Python-list mailing list