Forum Discussion
TaSM1_90432
Nimbostratus
15 years agoiRule 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...
Chris_Miller
Altostratus
15 years agoYou need "string tolower" and not just "tolower."
To make sure I understand what you're trying to do:
1. Only examine POSTs.
2. Reject POST unless a certain header exists.
Are you looking for a certain header name, or any header that has a certain value? The rules above loop through every single header so will be inefficient if you're just looking for a specific one.