send method
[This documentation is preliminary and is subject to change.]
Sends an HTTP request to the server and receives a response.
Syntax
HRESULT retVal = object.send(varBody);
Standards information
- XMLHttpRequest, Section 3.6.3
Parameters
varBody [in, optional]
Type: VARIANTVARIANT that specifies the body of the message being sent with the request.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
send was introduced in Windows Internet Explorer 7.
This method is synchronous or asynchronous, depending on the value of the varAsync parameter in the 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).
See also
Reference
Build date: 1/26/2012