send data with tcp-client()
This function has two use cases.
Use case 1
If a is a client connection, payload b is sent there.
The return value of the function is the response as a string. Note: If the connection uses a ByteHandler, the response is a Base64 string. See also function decode Base64().
Use case 2
If a is a server connection and a is used in the profile in a TCP Input Agent, b is sent as a response to the TCP client that called the profile.
Parameters
Parameter |
Description |
a |
|
b |
If a uses a StringHandler, specify a normal string. If a uses a ByteHandler, a Base64 value must be specified. Use function convert hex to base64() to generate the value. |