newbie - winsock error 10054 - connection reset by peer

Fredrik Lundh fredrik at pythonware.com
Wed Feb 21 04:30:25 EST 2001


Thom Wysong wrote:
> The winsock error 10054 shows up for no apparent reason.

where "no apparent reason" means that either python.org
or someone on the way to python.org doesn't want to talk
to your machine.

maybe you're using a proxy?

httplib doesn't work with proxies. use urllib instead:

    import urllib, os
    os.environ["http_proxy"] = "yourproxy:port"
    file = urllib.urlopen("http://www.python.org")

(if you're using IE and Python 2.0, you can leave out the
os.environ line)

Cheers /F





More information about the Python-list mailing list