Forum Discussion
tarsier_90410
Oct 17, 2011Nimbostratus
HTTP::respond - bug or improper use?
When using HTTP::respond 302 Location "https://<...>" in the HTTP_RESPONSE when the server also issued a 302, the LTM's 302 does not appear to work and the client receives the location specified by th...
Michael_Yates
Oct 17, 2011Nimbostratus
Interesting.
I replicated what you have as closely as possible and can only suggest that you set the values to a known state and string tolower your values. This is a sample of what I tested and it worked, so there is some other detail that I am missing from being able to replicate your issue.
when HTTP_RESPONSE {
if { [string tolower [HTTP::header exists "server" ]] } {
switch [string tolower [HTTP::header value "server" ]] {
"microsoft-iis/6.0" { HTTP::respond 302 Location "https://www.google.com" }
}
}
}
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