Forum Discussion
Alex_Ma_58639
Nimbostratus
Dec 03, 2008add HTTP Header
How to write a iRule to check if the incoming HTTP header is "abc123" then add a header "efg123" in front of "abc123"?
- hoolio
Cirrostratus
Hi there, - Alex_Ma_58639
Nimbostratus
Dear aaron, - hoolio
Cirrostratus
I assume you have a scenario like this:when HTTP_REQUEST { Check if ABC header exists if {[HTTP::header exists "ABC"]}{ Save the value of ABC set abc_value [HTTP::header value "ABC"] Remove the ABC header HTTP::header remove "ABC" Insert the EFG header HTTP::header insert "EFG" value "efg_value" Insert the ABC header again so it's after the EFG header HTTP::header insert "ABC" value $abc_value } }
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