Forum Discussion
JRahm
Mar 31, 2005Admin
In this line:
if { [string length http::uri] equals 5 }
The unformatted uri still has the / in it, are you including that in the 5 characters, or should it be 6 with the /. Otherwise, you could use the $uri variable. Add some logging for debugging purposes that shows you the output of the string manipulations, such as
set uri_length { string length [HTTP::uri] }
set uri__formatted_length { string length $uri }
log " URI is [HTTP::uri] "
log " URI formatted is $uri "
log " URI lenght is $uri_length "
log " URI formatted length is $uri_formatted_length "