User Guide

HTTPProvider object 293
StatusCode
Syntax StatusCode: Integer (read-only)
Description The HTTP request Status-Code element. This is a 3-digit integer result code of the
attempt to understand and satisfy the request.
URL
Syntax URL: OleVariant
Description Sets and gets the URL location of the resource on which an HTTP method is to be
applied.
Username
Syntax Username: OleVariant
Description Sets and gets the web server access username.
Methods
Abort
Syntax Abort();
Description Aborts the current HTTP operation.
Get
Syntax Get();
Description Performs an HTTP GET method request. Uses the appropriate properties of the
HTTPProvider object to set HTTP request parameters, such as proxy server settings,
username and password.
Example
//*********************************************//
// This script demonstrates a basic GET method
// against the Macromedia home page.
//*******************************************//
// Message box constants
var hsOKInfo = 64;
function Main () {
var app = Application;
var httpPro = app.HTTPProvider;