Forum Discussion
Gustavo_Lazarte
Nimbostratus
Jul 21, 2008Modifying Header Location
We are having problems passing a security audit because IIS 5 shows the name of the servers when it does a redirection on the location part of the header. The problems is when we hit a redirect (302 O...
Jul 22, 2008
Since you are testing the entire location header for server01, server02, or server03, why the need for a string map? Wouldn't the following do the same thing? Oh, and you might want to change the string comparison for the HTTP::status compare to a numeric equals as that will perform faster.
when HTTP_RESPONSE {
if { [HTTP::status] == 302 } {
switch [string tolower [HTTP::header Location]] {
"server01" -
"server02" -
"server03" {
HTTP::header replace Location "www.site.com"
}
}
}
}
-Joe
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