Tag Link | [TCP_Send] | Category | Networking |
---|---|---|---|
Type | Substitution | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | String | Security | Tag |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[TCP_Send] sends a string through a low
This tag requires a
Any string values included in the tag are concatenated together and sent as a message to the remote server. The responses from each remote server are collected into a buffer and then returned from the [TCP_Send] tag.
If the
If the
The optional
[TCP_Send:
String Value]
[TCP_Send:
String Value]
[TCP_Send:
String Value]
[TCP_Send:
[TCP_Send:
String Value]
Required Parameters | |
---|---|
String Value | The value to send through the TCP connection. |
-Name | The name of the TCP connection to send through. |
Optional Parameters | |
-StopAfter | An optional delimiter. If specified the results of the TCP connection will be read until this string is encountered. |
-Timeout | The number of seconds to wait before timing out the TCP connection. |
-DontWait | If set to True then no results will be returned from the tag. Defaults to False. |
To send a command through a low-level TCP/IP connection to a remote server:
Use the [TCP_Send] tag. The following example sends a GET request to a Web server through a connection named Example. All of the results of the GET are returned.
[TCP_Send:
'GET / HTTP/1.0
']
<html>
<head>
<title> Example Web Page </title>
</head>
<body>
...
</body>
</html>