abort Method (ServerXMLHTTP-IServerXMLHTTPRequest)
Cancels the current HTTP request.
oServerXMLHttpRequest.abort();
var xmlServerHttp; xmlServerHttp = new ActiveXObject("Msxml2.ServerXMLHTTP.3.0"); xmlServerHttp.onreadystatechange = doServerHttpReadyStateChange; xmlServerHttp.open("GET", "http://localhost/sample.xml", true); xmlServerHttp.send(); function doServerHttpReadyStateChange() { if (xmlServerHttp.readyState == 2) { xmlServerHttp.abort(); } }
HRESULT abort(void);
C/C++ Return Values
S_OK
The value returned if successful.
The object will be returned to the UNINITIALIZED state, and open method must be called next.
Implemented in: MSXML 3.0 and MSXML 6.0
IServerXMLHTTPRequest-ServerXMLHTTP
readyState Property (ServerXMLHTTP-IServerXMLHTTPRequest)
open Method (ServerXMLHTTP-IServerXMLHTTPRequest)
Show: