Check http method from APM per request policy?

Is there a way to check http method [post, get, trace, etc] from APM per request policy?

Hi

So I guess you could do something like this. I’m guessing you want to check each request.

Create an iRule with code that captures the HTTP::method and write it to an APM variable that is then evaluated by the policy.

when HTTP_REQUEST { ACCESS::session data set session.custom.http_method [string tolower [HTTP::method]] }

and then in your per request policy, add an empty action and add a branch rule (or rules) for the method(s) that you want to do something with. eg

expr {[mcget {session.custom.http_method}] == “get”}