Name
cfheader
Synopsis
<cfheader>
Generates
a custom HTTP header that contains either a custom name/value pair or
an HTTP status code and optional text message. Only one name/value
pair or status code can be specified per cfheader
tag. Name/value attributes can’t be mixed with
status code attributes within the same cfheader
tag. Multiple cfheader tags can be used to set
multiple header values as long as they are declared separately. Note
that cfheader can’t be used on
the same page as the cfflush tag.
Attributes
-
name="header_name" The name of the header element. Required when using the
cfheadertag to pass a name/value pair. Ifname="Content-Disposition", the header’s value is encoded using the default file encoding. This allows the name of the file to contain characters encoded using the same character encoding as the file.-
statuscode="status_code" The HTTP status code to pass in the HTTP header. Required when using the
cfheadertag to pass status code information.-
statustext="status_text" A text message to accompany an HTTP status code. The
statustextattribute can be used only in conjunction with thestatuscodeattribute. Optional.-
value="header_value" The value of the header element. Required when using the
cfheadertag to pass a name/value pair.