User Guide

HTTPProvider Object 265
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 getss 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
Sample GET script
//*********************************************//
// This script demonstrates a simple GET method
// against the Macromedia home page.
//*******************************************//
// Message box constants
var hsOKInfo = 64;
function Main () {
var app = Application;
var httpPro = app.HTTPProvider;