Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:header_count(header_name)

HTTP:header_count(header_name)

Returns the integer counter of the header <header_name>.

Syntax

HTTP:header_count(header_name);

Arguments

Name Description

Header_name

A string which specifies the header name.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
count = HTTP:header_count(“Cookie”);
}

Supported Version

FortiADC version 4.3.x and later.

HTTP:header_count(header_name)

HTTP:header_count(header_name)

Returns the integer counter of the header <header_name>.

Syntax

HTTP:header_count(header_name);

Arguments

Name Description

Header_name

A string which specifies the header name.

Events

Applicable in the following events:

  • HTTP_REQUEST

  • HTTP_RESPONSE

Example

when HTTP_REQUEST {
count = HTTP:header_count(“Cookie”);
}

Supported Version

FortiADC version 4.3.x and later.