Sends an HTTP request to the server and receives a response.
HRESULT send( VARIANT varBody );
- [in] VARIANT that specifies the body of the message being sent with the request.
Returns S_OK if successful, or an error value otherwise.
IHTMLXMLHttpRequest::send was introduced in Windows Internet Explorer 7.
This method is synchronous or asynchronous, depending on the value of the varAsync parameter in the IHTMLXMLHttpRequest::open method call. If synchronous, this call does not return until the entire response is received or the protocol stack time out period expires. If asynchronous, this call returns immediately.
This optional varBody parameter may be a BSTR, SAFEARRAY of unsigned bytes (VT_ARRAY | VT_UI1) , or an IDispatch to an XML Document Object Model (DOM) object. For additional information, see send Method (IXMLHTTPRequest).