Forum Discussion
schusb
Aug 28, 2018Nimbostratus
What's the purpose of the catch block in an ASM_REQUEST_BLOCKING scenario
We're returning custom ASM-error pages by using an irule whose initial structure follows the principle of the article ASM_REQUEST_BLOCKING.
Some month ago i decided to remove the last block 'whe...
Kevin_Stewart
Aug 28, 2018Employee
You can use the more complete form of catch to return the resulting error:
if { [catch {
do only if previous was event ASM_REQUEST_BLOCKING
if { $activeViolation } {
modify respose header
HTTP::header remove Content-Length
HTTP::header insert header_1 value_1
}
} err] } {
log local0. "Error is ${err}"
}
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