I am getting socket.getaddrinfo error when I try to use urlib and socket modules. So, I read some posts on SO and found everyone giving the solution to change the HTTP_PROXY. So, then I made the changes to my env. variable and now I can open:
import urllib, urllib2, httplib
url = 'http://www.google.com'
print "urllib"
data = urllib.urlopen(url)
But, if I try to use socket.addrinfo(host,port) I am still getting this error:
sockt.gaierror: [Errno 11004] Failed
I am trying to use the splunk SDK which makes a call to socket class and uses socket.getaddrinfo() function while setting up the connection. Does anyone know the solution for it?