Fortinet white logo
Fortinet white logo

Script Reference Guide

Url_enc(str)

Url_enc(str)

Converts the URL information into valid ASCII format.

Syntax

url_enc(str);

Arguments

Name Description

str

A string which will be converted.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
url_list =https://abc.www.123.bbEEE.com/?5331=212&qe1=222
debug("Ori= %s \nencodeed= %s\n", url_list,url_enc(url_list));
}

Supported Version

FortiADC version 5.2.x and later.

Url_enc(str)

Url_enc(str)

Converts the URL information into valid ASCII format.

Syntax

url_enc(str);

Arguments

Name Description

str

A string which will be converted.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
url_list =https://abc.www.123.bbEEE.com/?5331=212&qe1=222
debug("Ori= %s \nencodeed= %s\n", url_list,url_enc(url_list));
}

Supported Version

FortiADC version 5.2.x and later.