Forum Discussion

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

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

     

     

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