Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

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.
If not needed, just send an empty string ""

 

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

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software