231
State (TAllaireHTTPProviderState; readonly)
The state of the HTTPProvider object. The enumerated state values are:
0 - httpReady
1 - httpNotConnected
2 - httpConnected (browse)
3 - httpDnsLookup
4 - httpDnsLookupDone
5 - httpWaitingHeader
6 - httpWaitingBody
7 - httpAborting
StatusCode (Integer; readonly)
The HTTP request Status-Code element. This is a 3-digit integer result code of the
attempt to understand and satisfy the request.
URL (OleVariant)
Sets/gets the URL location of the resource on which an HTTP method is to be applied.
Username (OleVariant)
Sets/gets the Web server access username.
Methods
Abort
procedure Abort
()
Abort the current HTTP operation.
Get
procedure Get
()
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 etc.
The following example demonstrates a simple GET method against the Allaire home
page:
// Message box constants
var hsOKInfo = 64;
function Main () {
var app = Application;
var httpPro = app.HTTPProvider;
httpPro.URL = "http://www.allaire.com";
httpPro.Get();
app.MessageBox( httpPro.ReceivedHeaderAsString ,"Received HTTP Header",
hsOKInfo);
app.MessageBox(
"URL=’"
+ httpPro.URL + "‘\n" +
Summary of Contents for COLDFUSION STUDIO 4.5-USING COLDFUSION...
Page 1: ...Allaire Corporation Using ColdFusion Studio ColdFusion Studio 4 5 for Windows 95 98 NT4 2000...
Page 16: ...xvi Contacting Allaire...
Page 90: ...82...
Page 130: ...122...
Page 133: ...141 Two VTML tags CAT and E let you customize the content of these dialog boxes...
Page 182: ...190...