def add_request_data(self, issue, request_data):
            """Add parsed request data to the node

            :param issue: Issue as XML document
            :param request_data: HTTP request data
            """
            request = HTTPRequestParser(request_data)
            request.parse_data()
            request.set_http_headers()
            headers = request.get_headers()

            # Add request attributes method like method
            try:
                xml_request_node = issue.xpath("TestProbe/HTTP/Request")[0]
                xml_request_node.attrib['method'] = request.get_method()
                xml_request_node.attrib['version'] = request.get_request_version()
            except __HOLE__:
                log.error("Index error")

            # Add parsed data
            try:
                xml_parsed_traffic = issue.xpath("TestProbe/HTTP/Request/Parsed")[0]
            except IndexError:
                Log.error("Index error")

            # Iterate through headers and create new XML nodes
            for h in headers.keys():
                for v in headers[h]:
                    # Create new sub-element
                    header_node = etree.Element('Header', name=h, value=v)
                    xml_parsed_traffic.append(header_node)

            # Add request data node
            request_data_node = etree.Element('Data')
            request_data_node.text = etree.CDATA(request.get_request_data())
            xml_parsed_traffic.append(request_data_node)
dataset/ETHPy150Open dorneanu/appvulnms/src/core/parser/AppVulnXMLParser.py/AppVulnXMLParser.add_request_data