Some errors when running code in diveintopython: (

David Wahler dwahler at
Fri Dec 23 17:26:50 CET 2005

Istvan Albert wrote:
> I remeber once I had truly puzzling problem that manifested itself the
> same way ... Firefox and cygwin python would work fine but the windows
> python would raise errors when trying to connect via http ...
> ... finally I realized that the day before IE was set to use a proxy
> server ( to capture traffic for testing but the proxy was not on that
> moment) ... I know little on how Windows works but it was quite a
> surprise that setting IE to work some way had some unwanted
> reprecussions somewhere else ...

See the documentation for urllib.urlopen:

In a Windows environment, if no proxy environment variables are set,
proxy settings are obtained from the registry's Internet Settings

-- David

More information about the Python-list mailing list