urllib open error

Thomas Thomas thomas at eforms.co.nz
Mon May 9 12:44:17 EDT 2005


Hi all,

trying to download a file using urllib. Working fine on most machines.. failing in one..



Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib;
>>> url='http://192.168.100.233/app/Assets/AssetDownload';
>>> f=urllib.urlopen(url);
>>> f.read()
'<HTML><HEAD>\n<TITLE>ERROR: The requested URL could not be retrieved</TITLE>\n</HEAD><BODY>\n<H1>ERROR</H1>\n<H2>The requested URL could not be retrieved</H2>\n<HR>\n<P>\nWhile trying to retrieve the URL:\n<A HREF="http://192.168.100.233/app/Assets/AssetDownload">http://192.168.100.233/app/Assets/AssetDownload</A>\n<P>\nThe following error was encountered:\n<UL>\n<LI>\n<STRONG>\nConnection Failed\n</STRONG>\n</UL>\n\n<P>\nThe system returned:\n<PRE><I>    (110) Connection timed out</I></PRE>\n\n<P>\nThe remote host or network may be down.  Please try the request again.\n<P>Your cache administrator is <A HREF="mailto:root">root</A>. \n\n<br clear="all">\n<hr noshade size=1>\nGenerated Mon, 09 May 2005 04:00:56 GMT by ipcop (Squid/2.4.STABLE6)\n</BODY></HTML>\n'

if I copy the url to a browser it works fine.

suggest any debug techiniques so I can figure out whats going wrong.

Note: I have tried the same stuff and it's working fine on (windows 2000, XP and on mac)  not this particular windows 2000 machine



Thanks in advance 

Thomas



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20050510/1e67f80e/attachment.html>


More information about the Python-list mailing list