Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : WebSpeed API functions : Generating Web page headers
 

Generating Web page headers

The functions listed in the following tables 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 10. 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
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.