can httplib.HTTPConnection use proxy?

robert no-spam at
Fri Mar 17 12:46:59 CET 2006

JuHui wrote:

> sorry, would you please give a sample code?
> I want to use HTTPConnection to get a html page content via a http
> proxy.
> thanks.

-> adam

and maybe you just want plain GET/POST.  use urllib

 >>> url=''
 >>> urllib.FancyURLopener(proxies={'http':'http://vs:3128'}).open( url 
'<html><head><meta http-equiv="content-type" content="text/html; 


More information about the Python-list mailing list