Forum Discussion
mcorvalan_57694
Nimbostratus
Aug 26, 2011Is 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
- Michael_Yates
Nimbostratus
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 - mcorvalan_57694
Nimbostratus
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 - hoolio
Cirrostratus
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 - Ed_Hammond_2611
Nimbostratus
Maybe you are looking for something like:
HTTP:: header insert X-MyCoolHeaderName [virtual name]
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
