HTTP Proxy: Broken, or Misconfiguration?

5 views
Skip to first unread message

Jamie Jackson

unread,
Dec 17, 2012, 4:51:05 PM12/17/12
to httpli...@googlegroups.com
I've pip-installed httplib2 and socksipy-branch.

>>> pkg_resources.get_distribution("socksipy-branch").version
'1.02'
>>> pkg_resources.get_distribution("httplib2").version
'0.7.7'

I am also running a local HTTP proxy, which I've tested through curl.

However, I can't seem to use the proxy with httplib2:

import httplib2, socks


http = httplib2.Http( proxy_info = httplib2.ProxyInfo(3, 'localhost', 8888) )
#http = httplib2.Http()

headers, response = http.request(url, 'GET')

print response

Am I doing something wrong, or is there still a problem with httplib2's proxy support?

Thanks,
Jamie



Reply all
Reply to author
Forward
0 new messages