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
}
- Helen_Johnson_1Mar 28, 2011Historic F5 AccountHi James,
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