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 changed it to be:
when HTTP_REQUEST {
set mypath [HTTP::path]
if { $::DEBUG }{
log "reqpath -> $mypath"
}
set mypath [string map {.html ""} $mypath]
if { $::DEBUG }{
log "newpath -> $mypath"
}
if { ! ($mypath ends_with "/") }{
set mypath $mypath/
if { $::DEBUG }{
log "apppath -> $mypath"
}
}
HTTP::path $mypath
pool A
}
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
