def send_cookie_auth(self, connection):
        """Include Cookie Authentication data in a header"""
        
        cj = cookielib.LWPCookieJar()
        cj.load(self.cookiefile)

        for cookie in cj:
            if cookie.name == 'UUID':
                uuidstr = cookie.value
            connection.putheader(cookie.name, cookie.value)
Include Cookie Authentication data in a header
recipes/Python/501148_xmlrpc_serverclient_which_does_cookie_handling/recipe-501148.py