Forum Discussion
Jay_Allison_400
Nimbostratus
May 22, 2007URI replace help
quite simply i'm trying to replace certain characters in a URI path with other characters, this was my first stab at it, doesn't seem to be working, any suggestions?
when HTTP_REQUEST {
URI::path [string map {~ ~ZZ % ~} [HTTP::uri]]
}
Tried a few other variations including backslashes and this
when HTTP_REQUEST {
URI::path [string map {~ ~ZZ % ~} URI::path]
}
haven't hit on one one that has worked yet
- Jay_Allison_400
Nimbostratus
So I got this to work fine - JRahm
Admin
Try replacing the uri command with the path command in your string map, then append the query when you set your new uri:
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