Forum Discussion
Jun 19, 2006
I've see this behavior before as well. Maybe unRuleY could comment on why it is but I've verified that the URI is correctly changed with the HTTP::uri command but the contents of the variable isn't correctly updated to match. Maybe this has something to do with variable caching but I'm not sure. If you want to log the values, store it into a temporary variable.
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/portal/" } {
log local0. "Original HTTP uri = [HTTP::uri]"
set newUri [string map { /portal/ /version02.webservices.portal/ } [HTTP::uri]]
HTTP::uri $newUri
log local0. "New HTTP uri = $newUri"
pool SDS_Pool01
}
-Joe