July 19th, 2004, 05:28 PM
IO Error can't connect using urllib
Hello I am getting the following error when trying to connect to a website.
Here is the error:
File "C:\Python23\lib\httplib.py", line 548, in connect
raise socket.error, msg
IOError: [Errno socket error] (10061, 'Connection refused')
Here is the code that I am trying to run:
I don't think my script is getting outside of my PC. Any Suggestions?
page = urllib.urlopen('http://www.amazon.com').read()
July 19th, 2004, 06:50 PM
Fixed the problem. It was a proxy setting.