Hi,
There are two options :
1/ You can send the HTML page as text, and if you specify the 'text/html' mime-type as Content-Type, the browser will interpret it as HTML
DEFINE doc xml.DomDocument
LET doc = xml.DomDocument.Create()
CALL doc.load("myfile.html")
CALL req.setResponseHeader("Content-Type","text/html")
CALL req.sendTextResponse(200,NULL, doc.saveToString())
2/ Or you can send the HTML page in XML if you specify the "xhtml" mime-type as Content-Type header.
DEFINE doc xml.DomDocument
LET doc = xml.DomDocument.Create()
CALL doc.load("myfile.html")
CALL req.setResponseHeader("Content-Type","application/xhtml+xml")
CALL req.sendXmlResponse(200,NULL, doc)
Regards,
Frank