Re: urllib2 redirect error

2014-09-06 Thread Sumit Ray
Steven, Thank you! User advice was on point. Sumit On Tue, Sep 2, 2014 at 11:29 PM, dieter wrote: > Steven D'Aprano 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 > >

urllib2 redirect error

2014-09-01 Thread Sumit Ray
Hi, I've tried versions of the following but continue to get errors: - snip - url = 'https://www.usps.com/send/official-abbreviations.htm' request = urllib2.build_opener(urllib2.HTTPRedirectHandler).open(url) - snip - Generates an exception: urlli

urllib2 redirect error

2014-09-01 Thread Sumit Ray
Hi, I've tried various versions but continue to get the following error: -- https://mail.python.org/mailman/listinfo/python-list