Forum Discussion
Brad_Parker
Oct 27, 2015Cirrus
If it is a query parameter you can do it with something like this:
when HTTP_REQUEST {
if {[string tolower [URI::query [HTTP::uri] "User_Info"]] equals "xx"}{
pool "pool-1"
}
else {
pool "pool-2"
}
}
- Brad_ParkerOct 30, 2015CirrusIf your POST body is XML you could use a XML profile to direct your traffic to a pool based on that value. https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-implementations-11-6-0/3.html If its some other kind of body you may have to get more creative and parse the HTTP payload using HTTP::collect, https://devcentral.f5.com/Wiki/iRules.HTTP__collect.ashx, and the HTTP_REQUEST_DATA event.