Forum Discussion
MartinM_58357
Nimbostratus
May 29, 2014HTTP::uri caching
Hi
Irule snippet...
set foo [HTTP::uri]
log local0.info "foo = $foo"
set foo [string map -nocase {"jim" "fred"} [HTTP::uri]]
log local0.info "foo = $foo"
set HTTP::uri foo
log local...
nitass
Employee
May 29, 2014e.g.
config
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
log local0. "\[HTTP::uri\] = [HTTP::uri]"
set newuri [string map -nocase {"jim" "fred"} [HTTP::uri]]
HTTP::uri $newuri
log local0. "\[HTTP::uri\] = [HTTP::uri]"
}
}
/var/log/ltm
[root@ve11a:Active:In Sync] config tail -f /var/log/ltm
May 29 01:43:00 ve11a info tmm1[9801]: Rule /Common/qux : [HTTP::uri] = /jim/services/ServiceA
May 29 01:43:00 ve11a info tmm1[9801]: Rule /Common/qux : [HTTP::uri] = /fred/services/ServiceA
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
