Remove HTTP Header "X-ORACLE-DMS-ECID.

Hi

I tried to create Irule for remove the X ORACLE DMS ECID and X ORACLE DMS RID  from the http header below, but I am still seeing this information on the http response. So please someone can help me on it?

HTTP/1.1 404 Not Found

Max Forwards: 19

Via: 1.0 server1.internal.corp (), 1.0 server2.internal.corp ()

Connection: close

X CorrelationID: Id b1749e600bedba236af21254 0; Id b1749e607fbf36158ff2d04e 0

Access Control Expose Headers: x correlationid

Cache Control: no cache, no store, must revalidate

Date: Mon , 10 May 2021 13:01:38 GMT

X ORACLE DMS ECID : c0489ad2 5c41 4314 a3be 1a977e01e8b6 00004c8b

X ORACLE DMS RID : 0

Content Type: text/plain; charset=ISO 8859 1

Content Length: 9

Please see IRule below

Regards

when HTTP_RESPONSE {

foreach header {“X ORACLE DMS ECID:” “X ORACLE DMS RID :”} {

HTTP::header remove $header

}

}

remove the colon from the name. Add some logging using the HTTP::header exists command:

when HTTP_RESPONSE {
  foreach header {"X ORACLE DMS ECID" "X ORACLE DMS RID"} {
    if { [HTTP::header exists $header] } {
      log local0.debug "Header $header exists, removing"   
      HTTP::header remove $header
    }
  }
}

I will try and let you the results.