MACROMEDIA COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO Use Manual page 286

Table of Contents

Advertisement

268
The following error messages are predefined. Check for the error strings to detect
these error cases:
File already exits—Returned when file specified in FilePath exists and
bOverwrite
Path does not exist—Returned when the path specified in
exist.
Sample download script
Example
//*******************************************//
// This script downloads a ZIP file using
// SaveReceivedStreamToFile
//*******************************************//
function Main () {
var hsOKInfo = 64;
var app = Application;
var httpPro = app.HTTPProvider;
httpPro.URL
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);
}
}
URLEncode
Syntax
URLEncode(const wsValue: WideString): WideString;
Returns a URLEncoded form of the wsValue string. Use this function when
Description
populating URL or FORM data.
Chapter 14 Scripting the Visual Tools Object Model
is set to
.
False
= "http://127.0.0.1/test.zip";
does not
FilePath

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION STUDIO 5-USING COLDFUSION 5 STUDIO and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion studio 5

Table of Contents