Forum Discussion
hooleylist
May 09, 2007Cirrostratus
'[string first {?} $myUri 0]' will return an index of the first occurrence of the ? character. You could use that index in string range to get all characters up to that index:
[string range [HTTP::uri] 0 [expr [string first {?} [HTTP::uri] 0] - 1]
Or you could just use HTTP::path to get the path and object (/image/image.jpg for example) without the query string.
Aaron