Forum Discussion
Alan_Sha
Nimbostratus
Sep 07, 2005Unexpected TCL error from the return statement
When the "return" statement (without argument) is called within a USER_RESPONSE event, it will generate a TCL error in the Big IP system log, i.e.
Sep 7 14:31:07 tmm tmm[15951]: 01220001:3:...
Anuj_Chaudhary_
Nimbostratus
Jul 26, 2017App is working fine with IP...
- NZ_David_20489Oct 09, 2013
Nimbostratus
sorry iRule should show a lower case abc: } elseif {[string tolower [HTTP::header value screen]] equals "abc" and ${cert-check} != 1 } { HTTP::respond 403 - Kevin_StewartOct 09, 2013
Employee
It's a little odd because this appears to actually work with multiple headers in 11.3:
when HTTP_REQUEST { if { [string tolower [HTTP::header screen]] equals "abc" } { log local0. "match" } }
What version are you on?
In lieu of the above, you could also iterate through the list of headers like this:
when HTTP_REQUEST { foreach x [HTTP::header names] { if { ( $x equals "screen" ) and ( [string tolower [HTTP::header $x]] equals "abc" ) } { log local0. "match" break } } }
- NZ_David_20489Oct 09, 2013
Nimbostratus
Version 10.2.3 - What_Lies_Bene1Oct 09, 2013
Cirrostratus
Just to test, try switching the abc value to the second header and screen to the first. This should prove it's only reading the last header. - NZ_David_20489Oct 09, 2013
Nimbostratus
Hi 'What Lies Beneath' the test you are requesting is detailed previously