Forum Discussion
Rob_Morhaime_11
Nimbostratus
Aug 20, 2008Simple iRule not working - is it my "string map" syntax?
This seems like a simple iRule, but when applied I get socket errors. Here's the rule:
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
if { [HTTP::header Location] contains "PageM...
Rob_Morhaime_11
Nimbostratus
Aug 22, 2008Well, the logging statements helped. Thank you for that suggestion. Here's the output:
Aug 21 18:29:11 tmm tmm[725]: 01220001:3: TCL error: Rule my_rule - invalid command name "HTTP::is_redirect" while executing "HTTP::is_redirect"
So, HTTP::is_redirect isn't supported? We're running 9.1.0 and this article suggests it *is* supported:
http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__is_redirect.html
Any ideas? Documentation error?
fyi: I got my rule working by using [HTTP::status] contains "302" instead.
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
