Forum Discussion
fusky_116783
Nimbostratus
May 08, 2013Remove or change the URI doesn't work
Hi.
I want to change the original URI, but it doesn't work:
HTTP::uri "PPPPP"
log local0. "New Uri-->[HTTP::uri]<--"
If I watch the log, i can see --> : New Uri-->/original_uri<-...
Kevin_Stewart
Employee
May 08, 2013In versions less that 11.0, most of the HTTP:: command values are cached within the same iRule event, so they won't show the changed values. You can change the value, but the command itself will return the cached original. If you're on a version that is 11.0 or below there's a very good chance that your log statement is printing the original URI ("/brasil"), but that shouldn't affect the functionality that you're trying to produce. Otherwise, if the iRule isn't working as expected, regardless of the log statement, add some additional logging to see what is and isn't happening:
when HTTP_REQUEST {
log local0. "Incoming URI = [HTTP::uri]"
if { [HTTP::uri] eq "/brasil" } {
log local0. "Caught /brasil URI"
HTTP::uri "/PPP"
pool pool_xxxx
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects