Forum Discussion
1 Reply
Sort By
- Stanislas_Piro2Cumulonimbus
You can use following code to get query string parameters values
set ver [URI::query [HTTP::uri] ver] set cal [URI::query [HTTP::uri] cal] set app [URI::query [HTTP::uri] app]
Hello, Is below redirection possible using irules. If yes, can you please help.
The incoming URI that client requests: /test/foo?app=$1&ver=$2&cal=$3
Redirects to: /bar.?$1.$2.$3.
-->The $1, $2 , $3 are the variables in the request and keeps on changing with every request.
For example if in the browser, the URL is https://abc.com/test/foo?app=$1&ver=$2&cal=$3 , it the client should get 301 redirect to https://abc.com/bar.?$1.$2.$3.
Thank you
You can use following code to get query string parameters values
set ver [URI::query [HTTP::uri] ver]
set cal [URI::query [HTTP::uri] cal]
set app [URI::query [HTTP::uri] app]