MartinM_58357
May 29, 2014Nimbostratus
HTTP::uri caching
Hi
Irule snippet...
set foo [HTTP::uri]
log local0.info "foo = $foo"
set foo [string map -nocase {"jim" "fred"} [HTTP::uri]]
log local0.info "foo = $foo"
set HTTP::uri foo
log local0.info "HTTP::URI = [HTTP::uri]"
...gives...
May 29 09:23:49 10.39.49.55 tmm tmm[4854]: Rule XXXX : foo = /jim/services/ServiceA
May 29 09:23:49 10.39.49.55 tmm tmm[4854]: Rule XXXX : foo = /fred/services/ServiceA
May 29 09:23:49 10.39.49.55 tmm tmm[4854]: Rule XXXX : HTTP::URI = /jim/services/ServiceA
...and the URI passed onto the pool is /jim/services/ServiceA, when I want it to be /fred/services/ServiceA - web logs of the server in the pool show that /fred/services/ServiceA is being passed to the server
Why isn't the HTTP::uri assignment actually happening/sticking? Looks like there's some caching going on in the iRule?
It's the only iRule associated with the VS
Grateful for any assistance - this is causing a big problem at the moment
Thanks Martin