Sunday, 15 June 2014

python - What Is The Cause Of This URLOpen Error -



python - What Is The Cause Of This URLOpen Error -

my python code downloads file our website. code fails download file on clients computers. cant life of me figure out why file fails download when script runs on computers works on others.

the error occurs on computers is:

<urlopen error [errno 10060] connection effort failed because connected party did not respond after period of time, or established connection failed because connected host has failed respond>

the clients confirm connected net , can download same file(same url) through web browser. incredibly weird script works on computers , not on others, connected net cannot download file , can download file through browser not through script? maybe cause not admin user?

what can cause kind of error?

my simple code:

try: source_buffer = urllib2.urlopen(url) source_code = source_buffer.read() source_buffer.close() homecoming source_code except exception, e: print e

ps: think proxy error? if can explain going wrong? proxies have confused me - understand when using proxy http, https, ftp requests go through proxy computer (intermediary) before going out net dont understand how error can caused proxy? whats going wrong? whats occurring?

it proxy, or looking @ error message, local/personal firewall settings blocking outgoing requests application, or responses server reaching application. local firewall settings vary between computers, , might business relationship problem.

python windows debugging urllib2

No comments:

Post a Comment