Compartilhar via


IXMLHTTPRequest (Compact 2013)

3/26/2014

Provides client-side protocol support for communication with HTTP servers.

Remarks

A client computer can use the XMLHTTP object, MSXML2.XMLHTTP, to send an arbitrary HTTP request, receive the response, and have the Microsoft® XML Document Object Model (DOM) parse that response.

This object is integrated with the Microsoft XML Parser (MSXML) to support sending the request body directly from and parsing the response directly into the MSXML DOM objects. When combined with the support for Extensible Stylesheet Language (XSL), the XMLHTTP component provides an easy way to send structured queries to HTTP servers and efficiently display the results with a variety of presentations.

The usual sequence is to call open, set any custom header information through setRequestHeader, followed by send, and then to check one of the four different response properties.

This interface inherits from IDispatch.

Note

IXMLHTTPRequest does not support secure web site access.

Setting

Version-independent

Version-dependent

ProgID

Msxml2.XMLHTTP

Msxml2.XMLHTTP.3.0

CLSID

F6D90F16-9C73-11D3-B32E-00C04F990BB4

f5078f35-c551-11d3-89b9-0000f81fe221

See Also

Reference

XML HTTP Objects/Interfaces
IXMLHTTPRequest Members
DOMDocument