HTTP:set_event(t)
Sets a request or response event to enable or disable.
Syntax
HTTP:set_event(t);
Arguments
| Name | Description |
|---|---|
|
t |
A table that specifies when to enable/disable an event. |
Events
Applicable in the following events:
-
HTTP_REQUEST
-
HTTP_RESPONSE
Example
when HTTP_REQUEST {
t={};
t["event"] = "data_res";
t["operation"] = "disable";
HTTP:set_event(t);
}
Note:
The event can be "req", "res", "data_req", "data_res". And the operation can be "enable" and "disable". This command will generate a log if the event or operation is wrong.
Supported Version
FortiADC version 4.8.x and later.