Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 707

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Flex and AIR Integration in ColdFusion
Using the CF.http Get method
You use the
method to retrieve files, including text and binary files, from a specified server. You reference
Get
properties of the object returned by the
type, and so on.
The following example uses the
// Returns content of URL defined in url variable
// This example uses positional argument style
function get()
{
url = "http://www.adobe.com/software/coldfusion/";
//Invoke with just the url argument. Get is the default.
result = CF.http(url);
return result.get("Filecontent");
}
For more information about
function to access things like file content, header information, MIME
CF.http
function to show a common approach to retrieving data from the web:
CF.http
function properties, see CF.http in the CFML Reference.
CF.http
Last updated 1/20/2012
702

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents