'Parse cookie headers.
This method is not intended for users.'

def parseCookies(self):

    cookieheaders = self.requestHeaders.getRawHeaders('cookie')
    if (cookieheaders is None):
        return
    for cookietxt in cookieheaders:
        if cookietxt:
            for cook in cookietxt.split(';'):
                cook = cook.lstrip()
                try:
                    (k, v) = cook.split('=', 1)
                    self.received_cookies[k] = v
                except ValueError:
                    pass
