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.
Attributes
-
NAME="header_name" The name of the header element. Required when using the
CFHEADERtag to pass a name/value pair.-
VALUE="header_value" The value of the header element. Required when using the
CFHEADERtag to pass a name/value pair.-
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.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access