Message8171
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 |
|
Date |
User |
Action |
Args |
2013-11-01 14:59:40 | Lai Dung | set | recipients:
+ Lai Dung |
2013-11-01 14:59:40 | Lai Dung | set | messageid: <1383317980.5.0.362154943598.issue2103@psf.upfronthosting.co.za> |
2013-11-01 14:59:40 | Lai Dung | link | issue2103 messages |
2013-11-01 14:59:39 | Lai Dung | create | |
|