Forum Discussion
swabbies_112156
Nimbostratus
Jan 09, 2013help with syntax for trim command
Hello.
I am trying to sort out the correct syntax for using the trim function to get rid of any whitespace at the end of value.
exsting code: set cmd [ URI::query [string tolower [...
nitass
Employee
Jan 09, 2013i think so.
[root@ve10:Active] config b rule myrule list
rule myrule {
when RULE_INIT {
set uri "/interface.asp?command=testfunction%20&uid=testuser1"
log local0. "\[string map {%20 \"\"} \[URI::query [string tolower $uri] command\]\]=.[string map {%20 ""} [URI::query [string tolower $uri] command]]."
}
}
[root@ve10:Active] config tail /var/log/ltm
Jan 10 00:28:47 local/tmm info tmm[4884]: Rule myrule : [string map {%20 ""} [URI::query /interface.asp?command=testfunction%20&uid=testuser1 command]]=.testfunction.
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