Forum Discussion
How to match URI string with "#" character?
Hi Wallst,
its not possible to parse on this specific information. Well, its not a fault of your iRule or even F5, its more a thing of the underlying HTTP standart.
In the URI world the Hash-Sign () is called a "Fragment" and is completely suppressed from sending by every browser.
scheme:[//[user:password@]host[:port]][/]path[?query][fragment]
So everthing after the Hash-Sign never hits the wire and therefor never reaches your F5.
For more information refer to: https://en.wikipedia.org/wiki/Fragment_identifierBasics
Note: The Basics fragment of the Wiki site causes your Browser to jump to the section containing the code 'id="Basics"'
But you may want to change your iRule to exclude everything after the Hash-Sign. It would allow you to select the [pool] accordingly...
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/clientxyz*" { pool pool.1 }
default { pool pool.2 }
}
}
Cheers, Kai
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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