Skip Headers
Oracle® Fusion Middleware Idoc Script Reference Guide
11g Release 1 (11.1.1)

Part Number E10726-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to current chapter
Up
Go to next page
Next
View PDF

setHttpHeader

This function can be used to set any HTTP header. Values include, but are not limited to, 'Cache-Control', 'Content-Type', 'Last-Modified', or any of the other acceptable HTTP headers.

Refer to the W3 Protocols for more information:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3

Type and Usage

Parameters

Takes two parameters. For example:

setHttpHeader(headerName, headerValue)
Parameter Description
headerName The name of a valid HTTP header.
headerValue The value for the header.

Output

Example

This sets the content-type to XML, to enable your browser to render it with the passed XSLT.

<$setHttpHeader("Content-Type", "text/xml")$> 

See Also