Forum Discussion
Carl_Stone_1343
Nimbostratus
Mar 13, 2009Bypassing iRules if HTTP Class matched when iRule features commands not supported in HTTP_CLASS_FAILED event
HI,
I have a complex iRule performing redirection based upon multiple criteria.
I am using HTTP Class Profiles, however, as a first instance, to perform initial redirecti...
hoolio
Cirrostratus
Mar 16, 2009Hi Carl,
I think this is a bug in the validation logic applied to iRules for HTTP_CLASS_SELECTED and HTTP_CLASS_FAILED. The HTTP::path and HTTP::uri commands will work fine in both of these events--it's just the validator which prevents them from being referenced.
You can hide the HTTP:: commands from the validation by using the eval command:
when HTTP_CLASS_FAILED {
Hide [HTTP::path] from the validator
set path_cmd "HTTP::path"
Get the value of HTTP::path
set path [eval $path_cmd]
}
$path will then hold the HTTP::path output.
You could open a case with F5 Support to request this be fixed in a future version.
Aaron
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