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...
spark_86682
Aug 23, 2008Historic F5 Account
It's sort-of a documentation error. It turns out that the HTTP::is_redirect function framework was in 9.0.0, but some important code was left out. The documentation is often based on the framework, though, which is why it says that 9.0.0 has that command. That's also the reason that you get a runtime error, but not an error when you load the configuration. I'll update the wiki.
You could use "HTTP::header is_redirect", though; it's the same code underneath as HTTP::is_redirect.
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
