Fortinet white logo
Fortinet white logo

Script Reference Guide

url_dec(str)

url_dec(str)

Converts the encoding-URL into the original URL.

Syntax

url_dec(str);

Arguments

Name Description

str

A string which will be converted.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str = "http%3A%2F%2Fwww.example.com%3A890%2Furl%2Fpath%2Fdata%3Fname%3Dforest%23nose“
debug("String= %s\ndecoded= %s\n", str,url_dec(str));
}

Supported Version

FortiADC version 5.2.x and later.

url_dec(str)

url_dec(str)

Converts the encoding-URL into the original URL.

Syntax

url_dec(str);

Arguments

Name Description

str

A string which will be converted.

Events

Applicable in all events.

Example

when HTTP_REQUEST {
str = "http%3A%2F%2Fwww.example.com%3A890%2Furl%2Fpath%2Fdata%3Fname%3Dforest%23nose“
debug("String= %s\ndecoded= %s\n", str,url_dec(str));
}

Supported Version

FortiADC version 5.2.x and later.