# LTM: Multiple headers for "Request Header Insert"

**URL:** <https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367>\
**Category:** Technical Forums\
**Tags:** design, management, deployment\
**Created:** [February 3, 2014, 4:51am UTC](https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367 "2014-02-03T04:51:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JG](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@JG](https://community.f5.com/u/JG)\
**Post date:** [February 3, 2014, 4:51am UTC](https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367/1 "2014-02-03T04:51:07Z")

</div>

How do I insert more than one HTTP header for the field “Request Header Insert”?

---

<div class="post-metadata">

**Author:** ![nathe](https://avatars.discourse-cdn.com/v4/letter/n/eb8c5e/32.png) [@nathe](https://community.f5.com/u/nathe)\
**Post date:** [February 3, 2014, 8:59am UTC](https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367/2 "2014-02-03T08:59:06Z")

</div>

Jie,

I don’t think you can do this in the GUI. You’ll need to have an iRule and use the “HTTP::header insert” command.

HTH,

N

---

<div class="post-metadata">

**Author:** ![Mike\_61663](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@Mike\_61663](https://community.f5.com/u/Mike_61663)\
**Post date:** [February 3, 2014, 10:35am UTC](https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367/3 "2014-02-03T10:35:58Z")

</div>

If you have 11.4.0 or newer you could use LTM Policies to insert multiple HTTP headers via the GUI (or use iRules).

From the GUI…

```tcl
Local Traffic->Policies->Policy List-> + (add)
Give it a name and select "http" in the "requires" section and click "Finished".
Add a rule to this policy..Call it something like "AddHeader".  
Leave the conditions section empty but modify the Actions section with the following fields:
target: http-header 
event: request 
action: insert 
parameters: name yourhttpheadername 
            value yourhttpheadervalue
Then add additional actions for each http header you want to insert..
Once you finished creating the LTM policy, simply assign it to your virtual server under the "resources" tab.

```

---

<div class="post-metadata">

**Author:** ![webops\_97953](https://avatars.discourse-cdn.com/v4/letter/w/f1d935/32.png) [@webops\_97953](https://community.f5.com/u/webops_97953)\
**Post date:** [September 23, 2014, 3:59pm UTC](https://community.f5.com/t/ltm-multiple-headers-for-request-header-insert/48367/4 "2014-09-23T15:59:53Z")

</div>

Hello,

If you want add multiples header I think you have to use HTTP::header insert. (doc:[https://devcentral.f5.com/articles/manipulating-header-or-content-data](https://devcentral.f5.com/articles/manipulating-header-or-content-data))

For other hand, I checked adding “\n” in command header insert : {code} header insert X-Forwarded-Proto: https\nHeader2: Value2" {code}
