User Guide
CF.http 1105
Usage
You can write the CF.http function using named arguments or positional arguments. You can
invoke all supported arguments using the named argument style, as follows:
CF.http({method:"method", url:"URL", username:"username", password:"password",
resolveurl:"yes or no", params:arrayvar,
path:"path", file:"filename"});
Note: The named argument style uses curly braces {} to surround the function arguments.
Positional arguments let you use a shorthand coding style. However, not all arguments are
supported for the positional argument style. Use the following syntax to code the
CF.http
function using positional arguments:
CF.http(url);
CF.http(method, url);
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.
path Optional The path to the directory in which to store files. When using the
path
argument, the
file argument is required.
file Optional Name of the file that is accessed. For GET operations, defaults to the
name specified in the
url argument. Enter path information in the path
argument. This argument is required if you are using the
path argument.
Arguments Req/Opt Description