Forum Discussion
Yozzer
Nimbostratus
Dec 13, 2010Search payload and redirect to payload value
Hi
I need some help with the irule below. I want to search for a POST data name 'Relay" and then check its value and then redirect the POST to the Relay value . Relay could have a few diff...
hoolio
Cirrostratus
Dec 13, 2010That would probably work, but this is a bit more efficient:
when HTTP_REQUEST_DATA {
switch -glob [URI::decode [URI::query "?[HTTP::payload]" Relay]] {
"*/test2/*" {
HTTP::redirect "https://test.com/test2/login.aspx"
}
"*/test3/*" {
HTTP::redirect "https://test.com/test3/login.aspx"
}
}
}
Aaron
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
