DNSgeek_90802
Dec 28, 2009Nimbostratus
modifying 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 }{
log "requri -> '[string tolower [HTTP::uri]]'"
}
HTTP::uri [string trimright [HTTP::uri] ".html"]
if { $::DEBUG }{
log "newuri -> '[string tolower [HTTP::uri]]'"
}
....
}
What I see in the logs is:
Dec 28 11:36:00 local/tmm info tmm[2790]: 01220002:6: Rule myrule : requri -> '/blah.html'
Dec 28 11:36:00 local/tmm info tmm[2790]: 01220002:6: Rule myrule : newuri -> '/blah.html'
So, The .html isn't being trimmed. Any idea why?
Thanks!
Tom