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;
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...