httplib throw a proxy
Glauco
00515879256 at fastwebnet.it
Mon Mar 22 09:18:48 EST 2004
F. Petitjean wrote:
> On Mon, 22 Mar 2004 12:45:28 +0100, Glauco <00515879256 at fastwebnet.it> wrote:
>
>>I'm using a library based on httplib.
>>
>>Now, the problem is passing throw an http_proxy.
>>It seems because httplib (based on socket.py) try to autenticate on the
>>proxy.
>>
>>
>>I'm only with this problem ? it's impossible :-|
>>
>>any ideas ?
>
>
> use urllib2, for example :
>
> import urllib2
>
> def install_proxy():
> """initialize urllib2 to go through a proxy"""
> proxy_support = urllib2.ProxyHandler(
> { 'http' : "http://username:passwd@IP_proxy:8080",
> 'ftp' : "http://username:passwd@IP_proxy:8080" } )
> opener = urllib2.build_opener(proxy_support)
> urllib2.install_opener(opener)
>
> Regards
Hi Jean , thank's for response, but i cannot easy do change to base
library.
This is ZSI and is well structure over httplib.
My idea is to do some change at middle-level because proxy go well but
only without certification.
httplib.py
*
socket.py
Thank's again
Glauco
More information about the Python-list
mailing list