Forum Discussion
will_lee_113506
Nimbostratus
Mar 22, 2005Url character length limitation?
I'm in process of converting our v4.5.10 rules to v9 syntax. Our original scripts had workarounds to get around the 63/64 character limit on URIs. I believe that was in strict compliance with RFC or some standards. Anways an example of our workaround is -
if (getfield(http_uri, "/", 3) matches_regex "[Se][Ee][Rr][Vv][Ll][Ee][Tt]") {
if (getfield(http_uri, "/", 4) matches_regex "[Ss][Tt][Oo][Rr][Ee]") {
if (getfield(http_uri, "/", 5) matches_regex "[Ss][Tt][Oo][Rr][Ee]\?") {
use pool Store-Pool
Basically it looking for something that fits the pattern http://host/Servlet/Store/Store
Is there the same URI length restrictions in v9 or can I simply express the regex portion as one entire string?
thx
Will
- drteeth_127330Historic F5 AccountNo, there is no URI length limit in BIG-IP 9.x. Additionally, there are more efficient ways to perform case-insensitive comparisons. I don't think you need the regex, so you could do something like this:
if {[string compare -nocase -length 21 [HTTP::uri] "/servlet/store/store?"] == 0} { pool Store-Pool }
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