Forum Discussion
Jon_46219
Nimbostratus
Jul 28, 2011Blocked HTTP response codes
Hi,
I block some HTTP code responses with ASM and I would like to do some actions with a Irule when a page is blocked because received HTTP code.
I try to use ASM_REQUEST_BLOCKING and ASM_RESPONSE_VIOLATION events, but those are not triggered when a page is blocked because the received code.
The event HTTP_REQUEST_SEND is triggered, but here I don't have information in the violation field of ASM::violation_data.
There is any way of doing this?
Thanks.
4 Replies
- Jon_46219
Nimbostratus
Please, anybody can help me with this?
Thans. - The_Bhattman
Nimbostratus
Hi Jon,
I am not familiar with the ASM yet, but what about HTTP_RESPONSE? Does it get triggered? If so can you catch it there?
For example
HTTP_RESPONSE {
if { [HTTP::status] == 404 } {
do something
}
}
Bhattman - Jon_46219
Nimbostratus
I want to do something like this:
when ASM_RESPONSE_VIOLATION {
if "VIOLATION_HTTP_STATUS_IN_RESPONSE" (I get this from ASM::violation_data) happens:
do something
}
If a not allowed HTTP code is received from server, for example code 500, I get the block page but the ASM_RESPONSE_VIOLATION is not triggered so the code is not executed. - Jon_46219
Nimbostratus
HI,
My problem is solutioned. It was my problem. Thank you.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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