Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : Using <META> and <!--WSMETA --> tags : Specifying HTTP header information
 

Specifying HTTP header information

Content type <META> tags allow HTML files to specify HTTP header information with the following syntax:

Syntax

<META HTTP-EQUIV="Content-Type" CONTENT="http-info" >
For this tag, "http-info" can be any valid string of HTTP header information, as in this example that specifies a character set for the HTML file:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-2">
</HEAD>
<BODY>
. . .
You can also include this tag in embedded SpeedScript files that generate Web objects. If included, the preprocessor generates code for the Web object that outputs the specified HTTP header information at run time (using the output-content-type function). The default HTTP header string generated for Web objects is "text/html".
Note: By default, embedded SpeedScript Web objects output the preprocessed header information at runt time but suppress output of all content type <META> tags in the Web page. To retain these <META> tags in the HTML at run time, specify "keep-meta-content-type" in a file type options <META> tag. For more information, see Specifying file type options.
For embedded SpeedScript files, this tag is especially useful when the content is created using an alternative character set. However, in addition to specifying the character set in this tag, you must ensure that the Stream Code Page (-cpstream) value for the Transaction Server specifies the same character set. Otherwise, the Web object might generate a Web page with unpredictable results.