Forum Discussion

mcorvalan_57694's avatar
mcorvalan_57694
Icon for Nimbostratus rankNimbostratus
Aug 26, 2011

Is it possible insert an HTTP_HEADER with the vip name into the htpp_request?

Hi All.

 

I send this post to ask you is it possible insert an HTTP_HEADER with the vs name into the htpp_request?

 

basically I need to insert the a header to the resquest that has the Vs name in the F5.

 

Since now thanks alot.

 

 

 

4 Replies

  • I don't really understand why you would want to, but I am sure you could.

     

     

    Here is the Wiki Entry for HTTP::header:

     

    http://devcentral.f5.com/wiki/irules.HTTP__header.ashx

     

     

    Here is a Tech Tip that discusses manipulating Host Headers and Host Header Data:

     

    http://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/50/Manipulating-Header-or-Content-Data.aspx

     

  • This is very useful for me, but I ask another question.

     

    Is there some option to put as header value the vs's name (we use the same irule for many vs)? we need to use these for our internal analitics
  • I think you should be able to use this in a custom HTTP profile that you apply to any VS you want the VS name inserted for:

     

     

    virtual_name: [virtual name]

     

     

    Just update virtual_name to the name of the header you want to use.

     

     

    Aaron
  • Maybe you are looking for something like:

     

    HTTP:: header insert X-MyCoolHeaderName [virtual name]