Forum Discussion

Kalyan_Reddy_Da's avatar
Kalyan_Reddy_Da
Icon for Nimbostratus rankNimbostratus
Jul 20, 2010

Erasing 2 Headers using http profile

Erasing 2 Headers using http profile

 

 

 

Can anyone let me whether we can erase two HTTP headers using http profile "Request Header Erase" option.

 

4 Replies

  • Hi Kalyan,

     

     

    I think you can actually put a space delimited list of header names you'd like to remove from requests in the HTTP profile 'Request Header Erase' field.

     

     

    Aaron
  • Hi Aaron,

     

     

    i tried space as delimeter and it is not working.

     

     

    Any other solutions except irule .

     

     

    Your help is greatly appreciated

     

  • Hrm... I thought I saw an F5 solution suggesting the space delimited header names would work. I just tested on 10.2 and found it didn't work. Sorry about that.

     

     

    If this isn't supported, I think you'd need to use an iRule. You could confirm this by opening a case with F5 Support. It seems like it would make a good request for enhancement. If you do open a case and get a change request number, could you reply back here with it for others to reference?

     

     

    Thanks, Aaron
  • Steve_McCarthy_'s avatar
    Steve_McCarthy_
    Historic F5 Account

    Header Erase field takes a single header to remove. Multiple headers are not supported.

     

    There are some good alternatives, however.

     

    1. LTM Policy (http-header remove name headername) This is a good solution which should be fast, and doesn't (necessarily) incur the overhead of Tcl/iRule execution.

       

    2. iRules - highly flexible, but extra overhead

       

    a) HTTP::header remove headername Remove specified headername, add as many as desired

     

    b) HTTP::header sanitize Remove ALL headers except for essential ones needed by the protocol