Forum Discussion
Mic_108850
Altostratus
May 05, 2010irule and '%23' in URL
Hi,
I'm using the following irule to redirect some requests :
if { not([findstr $ParsedURI "redirect.jsp"] eq "") } {
set MyRedir [string map -noca...
hoolio
Cirrostratus
May 06, 2010Another option to decode the URL encoded string would be to use the URI::decode command:
set uri {http://mydomain/html/redirect.jsp;jsessionid=dqd?path=http%3A//mydomain2/a/link.html%3Fud_046.html%23d}
log local0. "\$uri: $uri"
log local0. "\[URI::query $uri\]: [URI::query $uri]"
log local0. "\$uri decoded: [URI::decode [URI::query $uri]]"
RULE_INIT>: $uri: http:// mydomain/html/redirect.jsp;jsessionid=dqd?path=http%3A//mydomain2/a/link.html%3Fud_046.html%23d
RULE_INIT: [URI::query http:// mydomain/html/redirect.jsp;jsessionid=dqd?path=http%3A//mydomain2/a/link.html%3Fud_046.html%23d]: path=http%3A//mydomain2/a/link.html%3Fud_046.html%23d
RULE_INIT: $uri decoded: path=http:// mydomain2/a/link.html?ud_046.htmld
Aaron
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
