Forum Discussion

Robert_Mann_281's avatar
Robert_Mann_281
Icon for Nimbostratus rankNimbostratus
Jul 20, 2017

TS object attributes for customized response page

When setting the response page for an ASM policy, I realize that we can use the TS object in the templates (for example with <%TS.request.ID()%> and <%TS.script.erase_cookies%> )... how can we find what other properties of this TS object are available for us to use? Can we, for example, get the Referer header or POST data?

 

What we'd ultimately like to do is have different messages on our response page based on headers or request data.

 

1 Reply

  • TS object is not documented by F5. The only documented property is request.ID for Support ID. I am curios in which F5 document did you see TS.script.erase_cookie?

     

    You can try to raise a support case with F5 and ask this question there (please do update this question if you find out!).

     

    Alternately you can always extract whatever you need using iRules and build your own response page using an iRule. Check out:

     

    https://devcentral.f5.com/wiki/irules.asm_request_blocking.ashx