Forum Discussion
George_33131
Nimbostratus
Nov 01, 2007Match on ASCII %5F
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.
3 Replies
- 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 - George_33131
Nimbostratus
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. - Glad to help!
-Joe
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects