Oracle® Fusion Middleware Idoc Script Reference Guide 11g Release 1 (11.1.1) E10726-01 |
|
Previous |
Next |
Home > Idoc Script Reference Guide > Management and Configuratio... > 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
Returns TRUE if the function is successful.
Returns FALSE if the function fails.
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