JCMATTOS_41723
Aug 08, 2013Nimbostratus
Combining Swtich iRules for HTTP::uri and HTTP::cookie?
We have version 11.1 and trying to create a new application workflow process by combining the current switch irules into one. We currently have an HTTP::uri and HTTP::cookie irules working separately but have the need to combine them to create new order of operation workflow. When combining them the first switch entry works by parsing uri /application/ and sending it to (POOLA), BUT the second nested cookie irule does not work and sends it to the default pool and NOT the assigned (POOLB). It seems to stop after the first switch irule logic and skip the cookie process altogether. Any suggestions?
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/application/*" {
pool QA-POOLA-80 }
switch [ HTTP::cookie "UserInfo" ] {
}
"*COMPANYID=GC*" {
pool QA-POOLB-80 }
}
}