<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > MSXML2 > MSXML2 Module Classes > ServerXMLHTTPRequest > ServerXMLHTTPRequest.Send |
Description
Sends an HTTP request to the server and receives a response.
Syntax
s = <ServerXMLHTTPRequest>.Send(requestBody)
Returns
String.
Parameters
Name |
Type |
Optional |
Meaning |
requestBody |
String |
No |
The body of the message being sent with the request. |
Remarks
This method is synchronous or asynchronous, depending on the value of the bAsync parameter in the open method call.
If open is called with bAsync = %False, this call does not return until the entire response is received or the protocol stack times out.
If open is called with bAsync = %True, this call returns immediately.
Restrictions
You cannot call multiple send methods for a single open method. Instead, for each send method, you must call a corresponding open method.
See also
Examples