MACROMEDIA COLDFUSION STUDIO 4.5-USING COLDFUSION STUDIO Use Manual page 226

For windows 95/98/nt4/2000
Table of Contents

Advertisement

234
The following scripts illustrates a download of a ZIP file using
SaveReceivedStreamToFile:
function Main () {
}
URLEncode
function URLEncode(const wsValue: WideString): WideString
Returns a URLEncoded form of the wsValue string. This function is useful when
populating URL or FORM data.
var hsOKInfo = 64;
var app = Application;
var httpPro = app.HTTPProvider;
httpPro.URL
= "http://127.0.0.1/test.zip";
httpPro.Get();
var bOverwrite = false;
var sErrorMsg =
httpPro.SaveReceivedStreamToFile("d:\\downloads\\test.zip",
bOverwrite );
if ( sErrorMsg != "" )
{
app.MessageBox( "A error occured :" + sErrorMsg ,"HTTPProvider
Error", hsOKInfo);
}

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion studio 4.5

Table of Contents