Thanks to the Microsoft IIS “courtesy redirect” feature, I have a URL being returned that has the underscore converted to the ASCII %5F.
I need to match on the URI containing %5F to send it to the correct pool, but can’t quite get there.
I have tried the following.
[string tolower [HTTP::uri]] contains "some%5Furi"
Can anyone let me know of the correct way to do this?
Thanks in advance.
Probably the “best” way to do this is to use the URI::decode command to decode those pesky ASCII sequences.
when HTTP_REQUEST {
if { [URI::decode [HTTP::uri]] contains "some_uri" } {
do something...
}
}
“some%5Furi” will convert to “some_uri” with the URI::decode command.
Hope this helps…
-Joe
Joe-
That’s perfect! I was beating my head trying to get a ‘binary scan’ to work.
Thank you very much for helping me out with this.