<cfheader>

Generates custom HTTP response headers to return to the client.

This tag cannot have a body.

This tag is also supported within <cfscript>

Attribute Description
charset
string, optional

The character encoding in which to encode the header value.

For more information on character encodings, see: http://www.w3.org/International/O-charset.html.

statustext
string, optional

Text that explains the status code. This attribute is used in conjunction with the statusCode attribute.

statuscode
number, optional

A number that sets the HTTP status code.

name
string, optional

A name for the header.

value
string, optional

A value for the HTTP header. This attribute is used in conjunction with the name attribute.

<cfheader
    [charset=string]
    [statustext=string]
    [statuscode=number]
    [name=string]
    [value=string]
>

Examples

There are currently no examples for this tag.

See also