Forum Discussion
Torti
Cirrus
Jan 07, 2014tcl error, when modifying http response
Hi guys,
We need a custom response for a dedicated validation (XML violation).
For this case I did expand the irule with the following lines:
when ASM_REQUEST_BLOCKING {
set x [...
uni
Altocumulus
Jan 07, 2014It looks to me like it is saying that the HTTP::header command is not allowed within the ASM_REQUEST_BLOCKING event. Kind of strange, given that the example on the ASM_REQUEST_BLOCKING page does just this.
Perhaps enclose some of the code in try/catch, and do some extra logging of the payload when it fails.
uni
Altocumulus
Jan 07, 2014Unrelated, but you should use 'contains' not '==' to test for the violation, as [lindex $x 0] is a comma separated list of violations
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