For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

igeo's avatar
igeo
Icon for Nimbostratus rankNimbostratus
Mar 04, 2022
Solved

Trim parentheses via tcl

I have the following URL and would like to remove the parentheses (both) by using an iRule (TCL):       http://ing1.example.com:31100/test1/test1.json/Streams(Type_4000000)           whe...
  • xuwen's avatar
    xuwen
    Mar 04, 2022
    when HTTP_REQUEST priority 500 {
        if { ([HTTP::host] eq "ing1.example.com:31100") and ([HTTP::uri] contains "Streams") } {
            set old_uri [HTTP::uri]
            HTTP::uri "[string map {( "" ) ""} $old_uri]"
        }
    }