Forum Discussion

Jon_46219's avatar
Icon for Nimbostratus rankNimbostratus
Jul 28, 2011

Blocked HTTP response codes




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?




4 Replies

  • 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





    if { [HTTP::status] == 404 } {


    do something








  • I want to do something like this:





    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.
  • HI,



    My problem is solutioned. It was my problem. Thank you.