User Guide
1106 Chapter 10: ColdFusion ActionScript Functions
CF.http(method, url, username, password);
CF.http(method, url, params, username, password);
Note: Do not use curly braces {} with positional arguments.
The following parameters can only be passed as an array of objects in the params argument in the
CF.http function:
The CF.http function returns data as a set of object properties, as described in the following table:
Parameter Description
name The variable name for data that is passed
type The transaction type:
• URL
• FormField
• Cookie
• CGI
• File
value Value of URL, FormField, Cookie, File, or CGI variables that are passed
Property Description
Text A Boolean value that indicates 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. For example, macromedia.com returns the following
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=.macromedia.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.