utsend.wbb - Send Text Back to the Client Browser

Syntax

CALL "utsend.wbb",text$

Description

This high-level routine sends HTML text to the client and works on all BASIC Web Utility platforms, regardless of the output destination, and automatically adds the Content-type header as needed to the first output.

Parameter

Description

text$

Text string sent to the client browser. On the first CALL to utsend.wbb, if text$ begins with "Location:", text$ is sent with a trailing blank line.

On the first CALL to utsend.wbb, if text$ begins with "Content-type: ", a header is not added by utsend.wbb, and the application is responsible for the header and trailing blank line. This enables the application to send any MIME data type to the browser.