Forum Discussion
Jerel_Ware_4263
Nimbostratus
Jan 18, 2010An interesting discovery...
The following iRule passes validation in the Web UI and the iRule editor, but causes the command line parser to fail load verifcation (and sync):
when HTTP_RESPONSE {
if { [HTTP::status] == "301" } {
respond with 302 using original Location value
HTTP::respond 302 Location [string map {"http://" "https://"} [HTTP::header Location]]
}
}
The problem is this section: [string map {"http://" "https://"}
If you remove the { } it still works and the command line parser no longer fails.
has anyone else had problems with this?
Running 9.4.7HF2.
- hoolio
Cirrostratus
Hi Jerel,when HTTP_RESPONSE { set test [string map {"http://" "https://"} "http://test"] set test2 [string map "http:// https://" "http://test"] }
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