Fortinet white logo
Fortinet white logo

Script Reference Guide

To_HEX(str)

To_HEX(str)

Returns the HEX calculate of the string.

Syntax

To_HEX(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str = “\0\123\3”
hex = to_HEX(str)
debug(“this str in hex is: %s\n”, hex)
}

Supported Version

FortiADC version 4.8.x and later.

To_HEX(str)

To_HEX(str)

Returns the HEX calculate of the string.

Syntax

To_HEX(str);

Arguments

Name Description

str

A string which will be calculated.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str = “\0\123\3”
hex = to_HEX(str)
debug(“this str in hex is: %s\n”, hex)
}

Supported Version

FortiADC version 4.8.x and later.