Forum Discussion
SSHSSH_97332
Nimbostratus
Apr 12, 2013Irule to Change on Response but for certain Requested URL
How to do that
i want to change ih HTTP response ( which can be done matching HTTP-RESPONSE event ... but how to do that for certain Specific requested URL ?
how will F5 know which URL was...
What_Lies_Bene1
Cirrostratus
Apr 15, 2013Here you go;
when HTTP_REQUEST {
set specialurl 0
if { [HTTP::uri] equals "/test.txt" } {
set specialurl 1
}
...any other rule elements...
}
when HTTP_RESPONSE {
if { $specialurl = 1 } {
do something }
else {
do something else or nothing }
}
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