Also, if you're doing that for every request and this is on an HTTP virtual server, you'll get a redirect loop. You could try something like this:
when HTTP_REQUEST {
Check if the URI has any capitalized letters
if {[string match {*[A-Z]*} [HTTP::uri]]}{
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::uri]]"
}
}
Setting parameter names or values to lower case might actually break the web app parsing of them. Do you want to set the path or the full URI to lower case (/path/to/file.ext versus /path/to/file.ext?param=value)?
Aaron