Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : outputHeader
 

outputHeader

This procedure outputs a MIME header and any cookie information needed by the Web object.

Location

web2\template\html-map.w
web2\template\wrap-cgi.w

Parameters

None

Notes

*Always run outputHeader before generating any HTML code. All new cookies must be created prior to the call to outputContentType that is embedded in outputHeader.
*If one Web object is going to run another Web object, remember that only the Web object that actually creates the HTML page should run outputHeader.
*Modify outtputHeader when you want a Web object to be state-aware or when you want to add special cookie information in your application. Instructions for doing both these tasks are provided in the template for this procedure. For state-aware Web objects, this procedure is a good place to set the webState and webTimeout attributes, as follows:
PROCEDURE outputHeader :
\*---------------------------------------------------------------------
Purpose: Output the MIME header, and any "cookie" information
----------------------------------------------------------------------*\
\* Make this a State-Aware web object with a 15 minutes timeout period *\
setWebState(5.0).
\* Create a standard HTML page. *\
outputContentType("text\html":U).
END PROCEDURE.

Examples

See the process-web-request function in web2\template\html-map.w.

See also

output-content-type
output-http-header
set-attribute-list