Forum Discussion
tarsier_90410
Nimbostratus
Oct 17, 2011HTTP::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...
tarsier_90410
Nimbostratus
Oct 17, 2011The significant difference is that I am doing the redirect in the HTTP_RESPONSE event, and also setting cookies, for a server response that sets a particular header...
when HTTP_RESPONSE {
if { [HTTP::header exists "status"] } {
switch [HTTP::header value "status"] {
"OK" {
HTTP::respond 302 Location "https://$HOSTNAME$URI" "Set-Cookie" $MY_COOKIE
return
}
... other cases ...
default {
}
}
}
}
The switch case works fine, but the HTTP::respond does not. I have tried hard coding the Location value and cookie value strings, but it makes no difference.
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