Forum Discussion
DNSgeek_90802
Nimbostratus
Dec 28, 2009modifying HTTP::uri not working?
I have an irule that needs to modify the URI of a request before it passes it to a pool of squid servers. What I have is:
when HTTP_REQUEST {
if { $::DEBUG }{
...
DNSgeek_90802
Nimbostratus
Dec 28, 2009Ok, I just tried that:
when HTTP_REQUEST {
if { $::DEBUG }{
log "requri -> [HTTP::uri]"
}
HTTP::uri [string trimright [HTTP::uri] .html ]
if { $::DEBUG }{
log "newuri -> [HTTP::uri]"
Dec 28 13:24:14 local/tmm info tmm[2790]: 01220002:6: Rule myrule : requri -> '/blah.html'
Dec 28 13:24:14 local/tmm info tmm[2790]: 01220002:6: Rule myrule : newuri -> '/blah.html'
So the .html still isn't being trimmed.
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
