[Tutor] Another problem with urllib
Remco Gerlich
scarblac@pino.selwerd.nl
Fri, 20 Jul 2001 23:11:30 +0200
On 0, Jesse W <jessw@loop.com> wrote:
> It's true that 'Connection refused' generaly refers to the site being
> down, which certianly is not a Python problem- But, I get that
> message when I try to access _any_ site, even sites that I am
> looking at in Netscape at the exact same time. That is why I suspect
> the problem has something to do with Python. ;-)
Python just opens a socket to a host and port, which uses the underlying
socket code of your system, and it reports a 'connection refused', for some
reason.
Or you maybe behind some sort of proxy? It could be that Netscape is
recognized or knows how to deal with the proxy, while Python doesn't?
What happens when you start telnet, and try to make a connection to
www.google.com on port 80, which is the same socket operation?
--
Remco Gerlich