cancel
Showing results for 
Search instead for 
Did you mean: 

remove http::header

Fincke
Nimbostratus
Nimbostratus

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 1

eneR
Cirrostratus
Cirrostratus

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