Home | History | Annotate | Download | only in tools

Lines Matching refs:pycurl

14 httplib2, lxml, pycurl.
30 # Needed in Linux so that PyCurl does not throw a segmentation fault.
40 import pycurl
232 self._curl_object = pycurl.Curl()
233 self._curl_object.setopt(pycurl.URL, self._url)
234 # The following line fixes the GnuTLS package error that pycurl depends
236 self._curl_object.setopt(pycurl.SSLVERSION, pycurl.SSLVERSION_SSLv3)
237 self._curl_object.setopt(pycurl.FOLLOWLOCATION, True)
238 self._curl_object.setopt(pycurl.NOBODY, True)
239 self._curl_object.setopt(pycurl.SSL_VERIFYPEER, False);
240 self._curl_object.setopt(pycurl.MAXREDIRS, MAX_REDIRECTIONS)
241 self._curl_object.setopt(pycurl.FAILONERROR, False)
242 self._curl_object.setopt(pycurl.COOKIEFILE, self._cookie_file)
243 self._curl_object.setopt(pycurl.COOKIEJAR, self._cookie_file)
244 self._curl_object.setopt(pycurl.CONNECTTIMEOUT, 30)
245 self._curl_object.setopt(pycurl.TIMEOUT, 300)
246 self._curl_object.setopt(pycurl.NOSIGNAL, 1)
251 This is called only for valid HTML files. The Pycurl makes a GET request.
253 at once. When some of the data on the page is downloaded Pycurl will put
257 self._curl_object.setopt(pycurl.NOBODY, False)
259 pycurl.WRITEFUNCTION, lambda buff: setattr(
276 except pycurl.error as e:
280 self._url, self._curl_object.getinfo(pycurl.EFFECTIVE_URL))
281 content_type = self._curl_object.getinfo(pycurl.CONTENT_TYPE)
286 except pycurl.error as e:
381 concurrently. The class of this object is |pycurl.CurlMulti|.
384 # at http://pycurl.sourceforge.net/doc/curlmultiobject.html.
387 if ret != pycurl.E_CALL_MULTI_PERFORM:
393 if ret != pycurl.E_CALL_MULTI_PERFORM:
401 concurrently from the same domain using the pycurl multi object. It's
468 except pycurl.error as e:
477 pycurl.EFFECTIVE_URL))
478 content_type = r._curl_object.getinfo(pycurl.CONTENT_TYPE)
488 except pycurl.error as e:
574 m = pycurl.CurlMulti()