URLLIB and PROXY

Dale Strickland-Clark dale at out-think.NOSPAMco.uk
Wed Nov 1 12:16:31 EST 2000


kentsin at poboxes.com wrote:

>The urllib of python 2.0 does not like the MS proxy. In my 
>environment, the proxy is 192.168.83.3:80. I have the following in my 
>win98 box :
>
>autoexec.bat
>
>set http_proxy=http://192.168.83.3:80
>
>I try to load a page with
>
>import urllib
>a = urllib.urlopen('http://www.python.org/')
>print a.read()
>
>This only works once but return null on all other cases.
>
>a.headers is :
>
>>>> print a.headers
>Server: Microsoft-IIS/4.0
>Date: Wed, 18 Oct 2000 06:40:54 GMT
>Proxy-Authenticate: NTLM
>
>How could I debug this?
>
>
>
>Rgs,
>
>Kent Sin
>
>
If you're just using HTTP and you have installed the MS Proxy client,
you don't need to specify a proxy. The MS Proxy client hooks into
TCP/IP and directs all traffic to the Proxy server.

--
Dale Strickland-Clark
Out-Think Ltd
Business Technology Consultants





More information about the Python-list mailing list