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, 2009So I changed my code to read:
when HTTP_REQUEST {
set myuri [HTTP::uri]
if { $::DEBUG }{
log "requri -> $myuri"
}
set myuri [string trimright $myuri .html ]
if { $::DEBUG }{
log "newuri -> $myuri"
}
Now the trimming seems to be having as expected. Thanks.
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