转自:http://zhuoqiang.me/python-urllib2-usage.html
http://www.cnblogs.com/txw1958/archive/2012/03/12/2392067.html