Skip to Main Content
Programming ColdFusion MX, 2nd Edition
book

Programming ColdFusion MX, 2nd Edition

by Rob Brooks-Bilson
August 2003
Intermediate to advanced content levelIntermediate to advanced
1140 pages
68h 45m
English
O'Reilly Media, Inc.
Content preview from Programming ColdFusion MX, 2nd Edition

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 cfheader tag to pass a name/value pair. If name="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 cfheader tag to pass status code information.

statustext=" status_text "

A text message to accompany an HTTP status code. The statustext attribute can be used only in conjunction with the statuscode attribute. Optional.

value=" header_value "

The value of the header element. Required when using the cfheader tag to pass a name/value pair.

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.
Start your free trial

You might also like

Programming ColdFusion

Programming ColdFusion

Rob Brooks-Bilson

Publisher Resources

ISBN: 0596003803Supplemental ContentErrata Page