TCP:peek()
Allows you to get data from a TCP connection before connecting to a real server.
Syntax
TCP:peek(size)
Arguments
| Name | Description |
|---|---|
|
size |
The data size that you want to get from a TCP connection. |
Events
Applicable in STREAM_CLIENT_INIT.
Example
when STREAM_CLIENT_INIT {
local header = TCP:peek(20)
}
Supported Version
FortiADC version 6.1.1 and later.