Forum Discussion

SaminKalhor_326's avatar
SaminKalhor_326
Icon for Nimbostratus rankNimbostratus
Jul 16, 2017

If there is an upper case in HTTP:: path

Hey folks, I want to know how to check "if" there is an upper cased letter in the path?

 

1 Reply

  • If you wanna know if there is an uppercase letter in the path, It is easy with irule :

    when HTTP_REQUEST {
        if { not ([string tolower [HTTP::path]] equals [HTTP::path]) } {
            log local0. "There is an uppercase char : [HTTP::path]"
        }
      }