Forum Discussion
Kevin_Stewart
Sep 17, 2013Employee
I can't speak for any changes that might relate to this, but using the HTTP_REQUEST event in an APM session can sometimes lead to ambiguity. You could more succinctly insert your code into the middle of the access session by inserting an iRule agent in the visual policy (where you want to do the work), and then add your iRule code in the ACCESS_POLICY_AGENT_EVENT event. If you have multiple points in the access evaluation process that you'd like to insert iRule code, give each iRule agent a different ID value and do something like this in code:
when ACCESS_POLICY_AGENT_EVENT {
switch [ACCESS::policy agent_id] {
"before_ad_id" {
do something
}
"after_ad_id" {
do something else
}
}
}
where "before_ad_id" and "after_ad_id" are arbitrary ID names in the iRule agent objects.