User Guide

802 Chapter 7: ColdFusion ActionScript Functions
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.
resolveurl Optional For
Get and Post methods.
Yes or No. Default is No.
For GET and POST operations, if Yes, the page reference that is
returned into the Filecontent property has its internal URLs fully
resolved, including port number, so that links remain intact. The
following HTML tags, which can contain links, are resolved:
-
img src
-
a href
-
form action
-
applet code
-
script src
-
embed src
-
embed pluginspace
-
body background
-
frame src
-
bgsound src
-
object data
-
object classid
-
object codebase
-
object usemap
params Optional HTTP parameters passed as an array of objects. Supports the
following parameter types:
name
type
value
CF.http params are passed as an array of objects. The params
argument is required for POST operations.