Adobe COLDFUSION 9 Manual page 705

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Using the CF.http function
The CF.http function returns an object that contains properties, also known as attributes. You reference these
attributes to access the contents of the file returned, header information, HTTP status codes, and so on. The following
table shows the available properties:
Property
Description
Text
A Boolean value indicating whether the specified URL location contains text data.
Charset
The charset used by the document specified in the URL.
HTTP servers normally provide this information, or the charset is specified in the charset parameter of the
Content-Type header field of the HTTP protocol. For example, the following HTTP header announces that the
character encoding is EUC-JP:
Content-Type: text/html; charset=EUC-JP
Header
Raw response header. The following is an example header:
HTTP/1.1 200 OK
Date: Mon, 04 Mar 2002 17:27:44 GMT
Server: Apache/1.3.22 (Unix) mod_perl/1.26
Set-Cookie: MM_cookie=207.22.48.162.4731015262864476;
path=/; expires=Wed, 03-Mar-04 17:27:44 GMT;
domain=.adobe.com
Connection: close
Content-Type: text/html
Filecontent
File contents, for text and MIME files.
Mimetype
MIME type. Examples of MIME types include text/html, image/png, image/gif, video/mpeg, text/css, and
audio/basic.
responseHeader
Response header. If there is one instance of a header key, this value can be accessed as a simple type. If there is
more than one instance, values are put in an array in the responseHeader structure.
Statuscode
HTTP error code and associated error string. Common HTTP status codes returned in the response header include
the following:
400: Bad Request
401: Unauthorized
403: Forbidden
404: Not Found
405: Method Not Allowed
Referencing HTTP Post parameters in the CF.http function
To pass HTTP
parameters in the
Post
variable named
. The following arguments can only be passed as an array of objects in the
params
the
function:
CF.http
function, construct an array of objects and assign this array to a
CF.http
Last updated 8/5/2010
700
argument of
params

Advertisement

Table of Contents
loading

Table of Contents