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.
- 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... } }
- George_33131
Nimbostratus
Joe- - Glad to help!
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