2
我无法使用httplib2连接到网站。我的电脑是在防火墙后面,作为https://code.google.com/p/httplib2/wiki/Examples建议,我也如下:在httplib2上设置代理
import httplib2
from httplib2 import socks
http = httplib2.Http(proxy_info = httplib2.ProxyInfo(socks.PROXY_TYPE_HTTP, <proxy host address>, 8080, proxy_user = <proxy user id>, proxy_pass = <proxy password>))
resp, content = http.request("http://google.com", "GET")
但是,我仍然得到
httplib2.ServerNotFoundError: Unable to find the server at google.com
我的电脑工作正常的urllib2。有谁能够帮助我?