problem using urllib2: \n

Alan Kennedy alanmk at hotmail.com
Tue Sep 23 14:42:17 EDT 2003


[bmiras at yahoo.com wrote]
> Here is an exemple of the piece of code I use:
> 
> import urllib2
> #Proxy handler
> proxy_handler = urllib2.ProxyHandler({"http" :
> "http://proxyuser:proxypassword@myproxy:8050"})

Might you need to change that URL? It looks like this URL indicates
that the proxy is running on port 8050 on host "myproxy".

Unless the host on which the proxy is running is named "myproxy", try
changing the proxy URL to one of the following values

http://proxyuser:proxypassword@localhost:8050
http://proxyuser:proxypassword@127.0.0.1:8050

HTH,

-- 
alan kennedy
-----------------------------------------------------
check http headers here: http://xhaus.com/headers
email alan:              http://xhaus.com/mailto/alan




More information about the Python-list mailing list