Forum Discussion
Max89
Nimbostratus
Aug 31, 2022iRule: New request after get response
Can I check response after receiving answer and run another request? This is necessary to check if the user is blocked. If the user is not blocked, give his result from another enpoint. Something li...
Kevin_Davies
Nacreous
Sep 02, 2022If your goal is to send them elsewhere on a 401 then you can redirect them to the alternate endpoint.
# Redirect on 401 avoiding a redirect loop
when HTTP_RESPONSE {
if { [HTTP::status] == 401 } {
if { [HTTP::uri] ne "/method1" } { HTTP::redirect "/method1"
}
} }
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