我有以下 URL,并希望使用 iRule (TCL) 删除括号:
http://ing1.example.com:32100/test1/test1.json/Streams(Type_4000000)
when HTTP_REQUEST {
if { ([HTTP::host] eq "ing1.example.com") or ([HTTP::host] eq "ing2.example.com" ) and ([HTTP::uri] contains "Streams")}
set NEW_URI [string trimleft [HTTP::uri] ( or )]
}
以上正确吗?谢谢你。