F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

SSHSSH_97332's avatar
SSHSSH_97332
Icon for Nimbostratus rankNimbostratus
Aug 08, 2014

Replace 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

  • Try this;-

    when HTTP_REQUEST {
        set newvalue "blah"
         Set new value
        HTTP::uri [string map "[URI::query [HTTP::uri] user] $newvalue" [HTTP::uri]]
    }