I'm trying to use pycurl to download test page using different resolvers.
>>> pycurl.version
'PycURL/7.19.3.1 libcurl/7.35.0 WinSSL'
I tried:
c = pycurl.Curl()
c.setopt(c.DNS_SERVERS, '1.2.3.4')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
pycurl.error: (4, '')
It happens on Linux and Windows equally. What am I doing wrong?
Can I use different resolvers with urllib2?