Forum Discussion

will_lee_113506's avatar
will_lee_113506
Icon for Nimbostratus rankNimbostratus
Mar 22, 2005

Url 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

1 Reply

  • drteeth_127330's avatar
    drteeth_127330
    Historic F5 Account
    No, 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 
     }