Freigeben über


IHTMLXMLHttpRequest interface

Exposes methods to send and receive an XMLHttpRequest.

Members

The IHTMLXMLHttpRequest interface inherits from the IDispatch interface. IHTMLXMLHttpRequest also has these types of members:

  • Methods
  • Properties

Methods

The IHTMLXMLHttpRequest interface has these methods.

Method Description
abort

Cancels the current HTTP request.

getAllResponseHeaders

Returns the complete list of response headers.

getResponseHeader

Returns the specified response header.

open

Requests a synchronous or asynchronous file download from a specific URL.

send

Sends an HTTP request to the server and receives a response.

setRequestHeader

Adds custom HTTP headers to the request.

 

Properties

The IHTMLXMLHttpRequest interface has these properties.

Property Description

onreadystatechange

Sets or retrieves the event handler for asynchronous requests.

readyState

Retrieves the current state of the request operation.

responseBody

Retrieves the response body as an array of unsigned bytes.

responseText

Retrieves the response body as a string.

responseXML

Retrieves the response body as an XML DOM object.

status

Retrieves the HTTP status code of the request.

statusText

Retrieves the friendly HTTP status of the request.

 

Requirements

Minimum supported client

Windows XP with SP2

Minimum supported server

Windows Server 2003

Header

Mshtml.h

IDL

Mshtml.idl

DLL

Mshtml.dll

See also

IDispatch

IHTMLXMLHttpRequestFactory