Forum Discussion

KT_271103's avatar
KT_271103
Icon for Nimbostratus rankNimbostratus
Sep 22, 2016

irule explaination

Can anyone explain below irule code

 

when HTTP_REQUEST { HTTP::header insert AMG_HTTPS_STATE "off" }

 

2 Replies

  • THi's avatar
    THi
    Icon for Nimbostratus rankNimbostratus

    This will insert a header named AMG_HTTPS_STATE with value "off" to the clients's http request going to server through the BIG-IP.

     

    "Inserts the named HTTP header(s) and value(s) onto the end of the HTTP request or response."

     

    Easiest way to get this kind of info is to search iRules wiki. It contains general and also more detailed information on iRules, usage, commands, syntax etc. iRules use TCL (Tool Control Language). See https://clouddocs.f5.com/api/irules/HomePage.html.

     

    From devcentral posts you can get more specific help/advice when you encounter tricky situations.

     

  • Hi KT,

    this iRule will simply add an additional HTTP header to each HTTP request with the name

    AMG_HTTPS_STATE
    and value
    off
    .

    Cheers, Kai