Forum Discussion
- Robert_47833Altostratuscan "?" represent a null or a space?
- hooleylistCirrostratusHi Jucao,
- Robert_47833Altostratusthanks,Aaron
- nitassEmployee
[root@ve1023:Active] config b rule myrule list rule myrule { when RULE_INIT { set test "/test?param1=val1¶m2=val2" log local0. "\[URI::query $test param1\]: [URI::query $test param1]" log local0. "\[URI::query $test param2\]: [URI::query $test param2]" switch [string tolower [URI::query $test param1]] { "val1" { log local0. "val1" } default { log local0. "default" } } } } [root@ve1023:Active] config tail /var/log/ltm 01:23:09 local/ve1023 err mcpd[23057]: 01020066:3: The requested rule (myrule) already exists in partition Common. Nov 22 01:23:09 local/tmm info tmm[24220]: Rule myrule : [URI::query /test?param1=val1¶m2=val2 param1]: val1 Nov 22 01:23:09 local/tmm info tmm[24220]: Rule myrule : [URI::query /test?param1=val1¶m2=val2 param2]: val2 Nov 22 01:23:09 local/tmm info tmm[24220]: Rule myrule : val1
- Robert_47833Altostratuselseif { $uri matches_regex "^/?$" } {