ltm rule command HTTP method
iRule(1) BIG-IP TMSH Manual iRule(1)
HTTP::method
Returns the type of HTTP request method.
SYNOPSIS
HTTP::method
DESCRIPTION
Returns the type of HTTP request method. This command replaces the BIG-IP 4.X variable http_method.
Syntax
HTTP::method
* Returns the type of HTTP request method. Common HTTP methods are
described in RFC2616 Section 5.1.1.
RETURN VALUE
VALID DURING
HTTP_REQUEST, HTTP_REQUEST_DATA, MR_INGRESS
EXAMPLES
Log the HTTP request method:
when HTTP_REQUEST {
log local0. "HTTP Method: [HTTP::method]"
}
Sample log output:
Rule: : HTTP Method: GET
HINTS
SEE ALSO
CHANGE LOG
@BIGIP-9.0.0 --First introduced the command.
BIG-IP 2020-06-23 iRule(1)