<urlopen error (11001, 'getaddrinfo failed')>
Chris Withers
chris at simplistix.co.uk
Fri Sep 11 09:54:20 EDT 2009
opengis at hushmail.com wrote:
> fs = cgi.FieldStorage()
> url = fs.getvalue('url', "http://www.openlayers.org")
> try:
insert a "print url" here...
> y = urllib2.urlopen(url)
> print y.read()
> This script produces the "<urlopen error (11001, 'getaddrinfo
> failed')>".
This is a name lookup failing, whatever you're ending up with in url is
either incorrect or the dns config of the server it's pointing at is
incorrect...
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
More information about the Python-list
mailing list