User Guide
1104 Chapter 10: ColdFusion ActionScript Functions
CF.http
Description
Executes HTTP POST and GET operations on files. (POST operations upload MIME file types
to a server, or post cookie, formfield, URL, file, or CGI variables directly to a server.)
Return value
Returns an object containing properties that you reference to access data.
Syntax
CF.http
({
method:"get or post",
url:"URL",
username:"username",
password:"password",
resolveurl:"yes or no",
params:arrayvar,
path:"path",
file:"filename"
})
Arguments
Arguments Req/Opt Description
method Required One of two arguments:
• get: downloads a text or binary file or creates a query from the
contents of a text file.
• post: sends information to the server page or CGI program for
processing. Requires the
params argument.
url Required The absolute URL of the host name or IP address of the server on
which the file resides. The URL must include the protocol (http or https)
and host name.
username Optional When required by a server, a username.
password Optional When required by a server, a password.