socket.gaierror from httplib

spamsink42 at gmail.com spamsink42 at gmail.com
Mon Aug 29 12:16:48 EDT 2005


this code

    h=httplib.HTTPConnection('euronext.com')
    h.request('GET',
'http://www.euronext.com/home/0,3766,1732,00.html')

fails with this message

      File "httplib.py", line 532, in connect
        socket.SOCK_STREAM):
    socket.gaierror: (-2, 'Name or service not known')

what am i doing wrong?

thanks
eric




More information about the Python-list mailing list