Forum Discussion
Samir_Jha_52506
Noctilucent
May 31, 2016Help require in iRule creation
Hi All,
i need to create an irule on LTM. The following is to be achieved
https://pqr.abc.com/?target=/rewards/download&psn=8YQ6QHGB2HDV&pkproxy=TPWM979HW2QTHVJD69CHW8GFP&service=sbt&action=signi...
Stanislas_Piro2
Cumulonimbus
May 31, 2016Hi,
HTTP query parameters can be extracted with command:
set psn [URI::query [HTTP::uri] psn]
set pkproxy [URI::query [HTTP::uri] pkproxy]
Then, use these variables in redirect.
when HTTP_REQUEST {
set psn [URI::query [HTTP::uri] psn]
set pkproxy [URI::query [HTTP::uri] pkproxy]
if {([HTTP::path] equals /) && ([URI::query [HTTP::uri] target] equals "/rewards/download")}{
HTTP::redirect https://xyz.pqr.com/ssoprecursor/home?psn=$psn&pkproxy=$pkproxy&returnurl=/onboard/home/setup&service=sbt
}
}
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