Updated on 2024-04-25 GMT+08:00

Protocol: TCP

TCP

This system keyword is used to test the TCP basic protocol. Ensure that the user IP address is accessible from the public network and the security group policy of the corresponding port is enabled to permit access.

Parameter

Mandatory

Type

Default Value

Description

Host

Yes

String

-

TCP service address

Port

Yes

Integer

-

TCP service port

Connect Timeout

Yes

Integer

-

TCP service connection timeout

Unit: millisecond

Read Timeout

Yes

Long

-

Message reading timeout

Unit: millisecond

Check End Type

Yes

Enum

CheckEndStr

Message end flag:

CheckEndLength

CheckEndStr

Body Type

Yes

Enum

CharSequence

Message body type:

CharSequence

HexadecimalCodeStream

TCP Response

Status: success

Parameter

Type

Description

Body

String

TCP API return

TCP Response Example

{
    "This is a test Message!"
 }

Default Checkpoint

Name

Expected Value

Result

Success

TCP Usage Example

Configure parameters to access the TCP service.