Fortinet white logo
Fortinet white logo

Script Reference Guide

HTTP:method_set(str)

HTTP:method_set(str)

Sets the HTTP request method to the string <value>.

Syntax

HTTP:method_set(str);

Arguments

Name Description

str

A string which specifies the method.

Events

  • BEFORE_AUTH

  • HTTP_REQUEST

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when HTTP_REQUEST {
HTTP:method_set(“POST”)
}

Supported Version

FortiADC version 4.3.x and later.

HTTP:method_set(str)

HTTP:method_set(str)

Sets the HTTP request method to the string <value>.

Syntax

HTTP:method_set(str);

Arguments

Name Description

str

A string which specifies the method.

Events

  • BEFORE_AUTH

  • HTTP_REQUEST

  • WAF_REQUEST_ATTACK_DETECTED

  • WAF_REQUEST_BEFORE_SCAN

Example

when HTTP_REQUEST {
HTTP:method_set(“POST”)
}

Supported Version

FortiADC version 4.3.x and later.