Forum Discussion
TaSM1_90432
Jan 28, 2011Nimbostratus
iRule to inspect case-insensitive string
Hello all: I am trying to compose an irule which examines a 'POST' in http header, doesn't care about case as it may be capitals or not, and processes as normal if that value is present. If...
TaSM1_90432
Jan 31, 2011Nimbostratus
Thank you Hoolio. That is good to know as the requirement is to have this be non case sensitive.
If I am understanding then, this irule should meet the requirements then:
when HTTP_REQUEST {
if {[HTTP::method] equals "POST"} {
set http_headers [HTTP::header names]
[$http_headers "specific_value_name"] if {$index == -1} { TCP::close } } }
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