From: fredrik at pythonware.com (Fredrik Lundh)
Date: Wed, 21 Apr 1999 21:42:00 GMT
Subject: How do I use proxies with httplib?
References: <7fl97e$lnc$1@nnrp1.dejanews.com>
Message-ID: <099101be8c3f$cb6206e0$f29b12c2@pythonware.com>
X-UID: 1408                                                  

<befletch at my-dejanews.com> wrote:
> I want to use httplib through a proxy server and I can't seem to get
> it to work.

that's probably because it doesn't work:

[Lib]$ grep proxy httplib.py 
[Lib]$

you might be able to use urllib instead:

[Lib]$ grep proxy urllib.py 
            proxy = self.proxies[type]
            type, proxy = splittype(proxy)
            host, selector = splithost(proxy)
            #print "proxy via http:", host, selector
        """Return a dictionary of scheme -> proxy server URL mappings.
        proxies.  An HTTP proxy, for instance, is stored under
        """Return a dictionary of scheme -> proxy server URL mappings.
        Scan the environment for variables named <scheme>_proxy;
            if value and name[-6:] == '_proxy':
[Lib]$

</F>





