Problem with urllib

Jean-Paul Mi=?ISO-8859-1?B?6Q==?=ville jpmieville at bluewin.ch
Wed Sep 18 15:40:47 EDT 2002


I don't understand why with some URL I have got [Errno 57] Socket is not
connected.

The code is :

import urllib2

page = urllib2.urlopen(' http://www.python.org/doc/NonEnglish.html')
print page.read()

If I do the same thing with python interactive, I can't reproduce the error.

Thanks in advance,
Jean-Paul




More information about the Python-list mailing list