<< Click to Display Table of Contents >> Navigation: Event and Object Analysis > Capture Results Filtering > Prefiltering HTTP Requests > Conditions > METHOD Condition |
The condition checks the HTTP request method.
The condition checks the name of the HTTP request method. The result is true if the method name matches the specified value.
Format
<c name="method" value="<HTTP method>" />
The "name" attribute:
The name attribute specifies the name of the condition: name="method".
The "value" attribute:
The value="..." attribute specifies the method name to use for the comparison.
Example
The rule stops processing all GET requests.
<?xml version="1.0" encoding="utf-8"?>
<filter name="HTTP filter" version="1.0">
<comment>HTTP filter.</comment>
<table name="main">
<rule enabled="1">
<match ...> ... </match>
<action ...> ... </action>
</rule>
<rule enabled="1">
<comment>
The rule stops further processing of GET requests.
</comment>
<match>
<c name="method" value="GET"/>
</match>
<action name="drop" />
</rule>
</table>
</filter>