Forum Discussion
TaSM1_90432
Nimbostratus
Jan 28, 2011iRule 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...
hoolio
Cirrostratus
Jan 31, 2011This should work to check close TCP connections when a POST without a required header name is parsed:
when HTTP_REQUEST {
Check for POST requests
if {[HTTP::method] eq "POST"}{
if { not ([HTTP::header exists "my_required_header_name"])}{
TCP::close
}
}
}
Aaron
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