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
Condition psn=
8YQ6QHGB2HDV
--> Dynamic String
pkproxy=
TPWM979HW2QTHVJD69CHW8GFP
--> Dynamic String
Could anybody please help me on this.
2 Replies
- Vijay_E
Cirrus
-
You need to better describe the problem.
-
Put forth at least a skeletal iRule that you developed and it is easier to assist.
-
- Stanislas_Piro2
Cumulonimbus
Hi,
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