def cache_authenticate(self):
        cookie = ""
        try:
            f = open(".rt_cache", "r")
            cookie = f.read().strip()
        except __HOLE__:
            return None
        if not(self.cert_check(RTConnect.RT_URL,443)):
            print "SSL Failed! Something is wrong!"
            return 0
        test_agent = httplib.HTTPSConnection("rt.rescomp.berkeley.edu", 443, timeout=30)
        test_headers = {"User-Agent": RTConnect.USER_AGENT, "Connection": "keep-alive", "Cookie": cookie}
        test_agent.request("GET", "/REST/1.0/index.html", "", test_headers)
        test_response = test_agent.getresponse()
        if test_response.status == 200:
            return cookie
        else:
            return None
    
    # RT's default format for emails delivered via REST is pretty messy, so this cleans it up.
dataset/ETHPy150Open maxburkhardt/nessus-parser/util/rt.py/RTConnect.cache_authenticate