'Write out the request/response in a more parseable XML format will
factor anything with a content-type not prefixed with a text/ in a
CDATA.
parent - the parent node (eg http-request/http-response)
action - either a details.request or details.response'

def report_http_action(self, parent_node, action):

    (headers, body) = self.handle_headers(parent_node, action)
    if body:
        self.handle_body(parent_node, headers, body)
