Forum Discussion
splendid81_2675
Nimbostratus
Aug 17, 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...
Vijay_E
Cirrus
Aug 17, 2016Try this:
when HTTP_REQUEST {
if { not (HTTP::header values eq "") } {
set VALUE [HTTP::header values ]
HTTP::header insert "User-Agent" $VALUE
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
