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
Takes two parameters. For example:
setHttpHeader(headerName, headerValue)
Parameter | Description |
---|---|
headerName | The name of a valid HTTP header. |
headerValue | The value for the header. |
Returns TRUE if the function is successful.
Returns FALSE if the function fails.
This sets the content-type to XML, to enable your browser to render it with the passed XSLT.
<$setHttpHeader("Content-Type", "text/xml")$>