Forum Discussion
splendid81_2675
Nimbostratus
Aug 16, 2016HTTP header insertion using irules
Hi,
Need some help here, I am trying to insert a http header with value of another header in the same HTTP request, how do I do that?
E.g.
when HTTP_REQUEST {
HTTP::header...
Kai_Wilke
MVP
Aug 17, 2016Hi Splendid81,
you may use the iRule code below...
when HTTP_REQUEST {
if { [HTTP::header values ""] ne "" } then {
HTTP::header remove ""
HTTP::header replace "" [HTTP::header values ""]
}
}
Note: You may uncomment the HTTP::header remove "" line if security is a concern for you. Otherwise LTM will just replace/add a single occourence without checking if the same header name exist more than once.
Cheers, Kai
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