Message8171

Author Lai Dung
Recipients Lai Dung
Date 2013-11-01.14:59:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1383317980.5.0.362154943598.issue2103@psf.upfronthosting.co.za>
In-reply-to
Content
As the title says, urllib2.urlopen() does not follow redirections.

For example this URL points to Google UK: http://goo.gl/g6xj -- But the result will be:

>>> import urllib2
>>> print(urllib2.urlopen('http://goo.gl/g6xj').read())
�'�+�0Y�▒ˮ.�v�_��rj
>>>

The Python's version works fine.

My machine:
- OS: Fedora GNOME 64 bit.
- Jython 2.7b1 (default:ac42d59644e9, Feb 9 2013, 15:24:52)
- [OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_45
History
Date User Action Args
2013-11-01 14:59:40Lai Dungsetrecipients: + Lai Dung
2013-11-01 14:59:40Lai Dungsetmessageid: <1383317980.5.0.362154943598.issue2103@psf.upfronthosting.co.za>
2013-11-01 14:59:40Lai Dunglinkissue2103 messages
2013-11-01 14:59:39Lai Dungcreate