Forum Discussion
SSHSSH_97332
Nimbostratus
Aug 08, 2014Replace Query parameter value
http://www.example.com:8080/main/abc/index.jsp?user=test&login=check
at the above , i need to rewrite value of parameter "user" to new value , regarldess of current value as current value for the parametr "user" will be dynamic
ie : i don't want to just replace "test" with new value , i want to replace any value inside parameter "user" to new value
1 Reply
- IheartF5_45022
Nacreous
Try this;-
when HTTP_REQUEST { set newvalue "blah" Set new value HTTP::uri [string map "[URI::query [HTTP::uri] user] $newvalue" [HTTP::uri]] }
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