Forum Discussion

Fincke's avatar
Fincke
Icon for Nimbostratus rankNimbostratus
Mar 04, 2020

remove http::header

I have tryed to make an iRule, witch shoul remove some http::headers in the responce.

 

when HTTP_RESPONSE {

  foreach header {"P3P" "p3p" "Server"} {

    HTTP::header remove $header

  }

}

 

the "Server" header is removed, witch indicates the iRule works... BUT the "P3P" is not ??

is it actual the LTM witch is setting the p3p header ? and why

 

is there any other way to remove it ?

it is actual present too times in the respond :

 

  1. Last-Modified: Mon, 02 Mar 2020 14:56:00 GMT
  2. P3P: CP="{}"
  3. P3P: CP="{}"

 

1 Reply

  • eneR's avatar
    eneR
    Icon for Cirrostratus rankCirrostratus

    Is it working with the " " ? I thought it should look like this

    when HTTP_RESPONSE {
       foreach header {P3P p3p Server} {
          HTTP::header remove $header
       }
    }

    Maybe try an Policy. Really simple to configure