1. 程式人生 > >pycurl_探測web服務

pycurl_探測web服務

pycurl

pycurl (pycurl.version) c = pycurl.Curl() c.setopt(pycurl.CONNECTTIMEOUT,) c.setopt(pycurl.TIMEOUT,) c.setopt(pycurl.NOPROGRESS,) c.setopt(pycurl.MAXREDIRS,) c.setopt(pycurl.FORBID_REUSE,) c.setopt(pycurl.FRESH_CONNECT,) c.setopt(pycurl.DNS_CACHE_TIMEOUT,) c.setopt(pycurl.URL,) c.setopt(pycurl.USERAGENT,) c.getinfo(pycurl.HTTP_CODE) c.getinfo(pycurl.TOTAL_TIME) c.getinfo(pycurl.NAMELOOKUP_TIME) c.getinfo(pycurl.CONNECT_TIME) c.getinfo(pycurl.PRETRANSFER_TIME) c.getinfo(pycurl.STARTTRANSFRE_TIME) c.getinfo(pycurl.REDIRECT_TIME) c.getinfo(pycurl.SIZE_UPLOAD) c.getinfo(pycurl.SIZE_DOWNLOAD) c.getinfo(pycurl.SPEED_DOWNLOAD) c.getinfo(pycurl.SPEED_UPLOAD) c.getinfo(pycurl.HEADER_SIZE)


pycurl_探測web服務