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

Table of Contents

Advertisement

HTTPProvider Object
HeadAsync
Syntax
HeadAsync();
Performs an HTTP
Description
Post
Syntax
Post();
Performs an HTTP
Description
Sample POST script
Example
//*******************************************//
// This script illustrates a POST method by which
// three FORM variables are submitted to a ColdFusion page.
//***********************************************//
function Main () {
var app = Application;
var httpPro = app.HTTPProvider;
httpPro.URL
var CustomerID
var ProductID
var DateSold
var PostStream ='Customer_ID='
httpPro.SendStreamAsString = PostStream; httpPro.Post();
var sOutput = httpPro.ReceivedStreamAsString;
app.activeDocument.Text = sOutput;
}
PostAsync
Syntax
PostAsync();
Description
Performs an HTTP
SaveReceivedStreamToFile
Syntax
SaveReceivedStreamToFile(FilePath: OleVariant; bOverwrite: wordbool):
OleVariant;
Description
Boolean. Saves the received stream into a file and returns the error message if an
error occurred. The
existing files or return an error.
method request asynchronously.
HEAD
method request.
POST
= "http://127.0.0.1/httptest.cfm";
= "John Doe";
= "3456";
= "10/10/99";
'&ProductNumber='
+ httpPro.URLEncode( ProductID ) +
'&SaleDate='
+ httpPro.URLEncode( DateSold );
method request asynchronously.
POST
parameter specifies whether to overwrite any
bOverwrite
+ httpPro.URLEncode( CustomerID ) +
267

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?

This manual is also suitable for:

Coldfusion studio 5

Table of Contents