Forum Discussion
Joe_Pipitone
Nimbostratus
May 27, 2014This is incredibly confusing - if I change the switch statement to look like the below - going to this URI with a capital C works....however, now going to this uri with a lowercase c breaks. It used to be the other way around. Something is funky as far as the case.
"c=*" {
log local0. "Query string of URI [HTTP::uri] is [URI::query [HTTP::uri]]"
HTTP::redirect "http://newforum.newdomain.com/default.aspx?g=forum&c=[URI::query [HTTP::uri] C]"
return
}
- Cory_50405May 27, 2014
Noctilucent
Were you able to confirm that when the communications break, that there's another redirect coming back from the server after the LTM does its redirection? - Joe_PipitoneMay 27, 2014
Nimbostratus
There's no other redirect that's happening - just checked it with httpwatch and Chrome dev tools. If I reverse the case of the C and c....then it redirects. I currently have this redirection in place using if statements with no issues. I appreciate your help - if there's anything else you may think I'm missing I am all ears! I am going to give this a shot using if statements in the meantime. - Cory_50405May 27, 2014
Noctilucent
It seems like the server would have to be doing the unexpected redirection. I see no other way you'd get redirected to http://newforum.newdomain.com/default.aspx?g=info&i=4 as that's not one of the targets from your iRule. The application sounds like it's behaving unexpectedly (or not) based on the query string. Just out of curiosity, can you post your iRule that works with if{} statements?