Forum Discussion
playfair039_320
Nimbostratus
Nov 11, 2017submit client request before http redirect
Is there a way to send the client request to the downstream server before redirecting the client? so desired flow is 1, when http request 2, if uri eq /logout (for example) 3, pass request to a downs...
Stanislas_Piro2
Cumulonimbus
Nov 11, 2017You can detect logout uri in HTTP_REQUEST and redirect in HTTP_RESPONSE
when HTTP_REQUEST {
if {[HTTP::path] equals "/logout"} {
set logout 1
} else {
set logout 0
}
}
when HTTP_RESPONSE {
if {$logout} {
HTTP::redirect /foo
}
}
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