Matches on a request method used (GET, POST, etc).

Arguments

method
The name of the method being used. This must be comma-separated list of the method which is typically one of the following: HEAD, GET, PUT, POST, DELETE.

Remarks

This condition allows you to optionally forbid or allow access to URL’s based on the request method.

Examples

To forbid access to POST to a URL, use:

<if method="POST" />
<forbidden />
</if>

See Also