Forum Discussion
amanthin_4026
Jul 20, 2012Nimbostratus
How can I detect # sign in URI using irule
I'd like to distinguish between the following two URLs 1) https://host.com/abc/ux/flash.html 2) https://host.com/abc/ux/flash.htmltab=Home%28page=Home&id=h4rih9ki%28%29%29 ...
John_Matlock_42
Jul 20, 2012Nimbostratus
Might not be the most graceful solution, but using "contains" works. I threw this onto a dev F5 and tested-- seems to work.
if {[HTTP::uri] contains ""} { log local0. "Found " } else { log local0. "No " }
You could also just grab everything after the first using the following:
set vars [getfield [HTTP::uri] "" 2]
Hope this is atleast somewhat helpful.
John
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