WebSpeed
Developer’s Guide


Generating Web Page Headers

The functions listed in Table 5–9 output Web page header information. For output-http-header to have any effect, you must execute it before output-content-type. Usually this is in the output-header procedure of a Web object.

Table 5–9: Web Page Header API Functions 
Function
Return Type
Description
output-content-type
LOGICAL
Sets and outputs the MIME Content-Type header followed by a blank line. If the header is already output, no action is taken. If the specified content type is blank (" “), no Content-Type header is output, but other headers such as Cookies are output followed by a blank line. Returns TRUE if Content-Type header is output; otherwise, FALSE.
output-http-header
CHARACTER
(Unknown, ?)
Outputs the specified HTTP header and associated value, followed by a carriage return (CR) and linefeed (LF). If the header is blank, CR and LF are still output.

See install-path/src/web/method/cgiutils.i for definitions of these functions.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095