pycurl example: pycurl frequently used options

c = pycurl.Curl()
c.setopt(pycurl.VERBOSE,1)
c.setopt(pycurl.FOLLOWLOCATION, 1)
c.setopt(pycurl.MAXREDIRS, 5)
#c.setopt(pycurl.AUTOREFERER,1)
#c.setopt(pycurl.COOKIEJAR,"dasfa")
c.setopt(pycurl.CONNECTTIMEOUT, 60)
c.setopt(pycurl.TIMEOUT, 300)
if proxy:
c.setopt(pycurl.PROXY,proxy)
c.setopt(pycurl.NOSIGNAL, 1)
Continue reading “pycurl example: pycurl frequently used options”