swo0sh_gt_13163
May 04, 2015Altostratus
Need to verify the iRule to replace HTTP Class
Hello Folks,
Seek for your quick help. I am working on a upgrade activity for one of the customers from 11.2.1 to 11.5.1. Where they have one HTTP Class containing RegEx, which isn't migrating to the latest release.
The HTTP Class looks as the following screenshot.
The iRule I have prepared looks as following, to serve the same purpose as HTTP Class. Could someone please confirm if it looks correct or require any modification?
when HTTP_REQUEST {
if {[HTTP::uri] matches_regex {"(?i)/testuri.*"} and [HTTP::header "header_sosproject"] contains "SOS_project"} {
pool pool_sos
}
}
Cheers! Darshan