WebRequest.Print

From Xojo Documentation

Method

WebRequest.Print(Data As String)

New in 2011r2

Supported for all project types and targets.

Appends the provided Data to the response.

Example

This code in WebApplication.HandleSpecialURL returns an HTML page back to the client:

Request.Print("<!DOCTYPE html>" + EndOfLine)
Request.Print("<html>" + EndOfLine)
Request.Print("<head>" + EndOfLine)
Request.Print("<title>Quote</title>" + EndOfLine)
Request.Print("</head>" + EndOfLine)
Request.Print("<body>" + EndOfLine)
Request.Print("<h1>Your Quote</h1>" + EndOfLine)
Request.Print("<p>Keep simple things simple, make complex things possible. -- Alan Kay</p>" + EndOfLine)
Request.Print("</body>" + EndOfLine)
Request.Print("</html>")

See Also

WebRequest.Reset, WebRequest.Response