Forum Discussion
Kevin_Stewart
Apr 26, 2013Employee
The switch conditionals will evaluate what is sent to them. If you send "[TCP::local_port][string tolower [HTTP::uri]]" then the conditionals will see a port and a URI (ex. "8088/tuesday"). Because you're doing -glob on the switch, the example string will satisfy the first condition ("8088*") regardless of the URI. In fact nothing past the port number will matter at all because of the wildcard, so "[string tolower [HTTP::uri]]" has no effect at all.
If you still need to evaluate the URI, then your conditional should look something like this: "8088/tuesday*". If you care about the case of the URI, then just remove the [string tolower ] syntax.