def add_request_data(self, issue, 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 IndexError:
                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)
Add parsed request data to the node
dataset/ETHPy150Open dorneanu/appvulnms/src/core/parser/AppVulnXMLParser.py/AppVulnXMLParser.add_request_data