一直用urllib2,读取很多https都正常,但遇到个奇怪的,谁明白给看看
------------------------------------------------------------------
#coding:utf-8
import traceback
import urllib2
url = "https://hdc1.alicdn.com/asyn.htm?userId=125929045&pageId=683695381&v=2014"
try:
content = urllib2.urlopen(url).read()
print "end",content
except Exception, e:
print e
------------------------------------------------------------------
地址直接在浏览器中可以访问,但是在python中获得的content就是一坨乱码。。
------------------------------------------------------------------
#coding:utf-8
import traceback
import urllib2
url = "https://hdc1.alicdn.com/asyn.htm?userId=125929045&pageId=683695381&v=2014"
try:
content = urllib2.urlopen(url).read()
print "end",content
except Exception, e:
print e
------------------------------------------------------------------
地址直接在浏览器中可以访问,但是在python中获得的content就是一坨乱码。。

