# Http header response

**URL:** <https://discourse.haproxy.org/t/http-header-response/6855>\
**Category:** Help!\
**Created:** [August 25, 2021, 1:21pm UTC](https://discourse.haproxy.org/t/http-header-response/6855 "2021-08-25T13:21:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AuroreB](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@AuroreB](https://discourse.haproxy.org/u/AuroreB)\
**Post date:** [August 25, 2021, 1:21pm UTC](https://discourse.haproxy.org/t/http-header-response/6855/1 "2021-08-25T13:21:35Z")

</div>

Hi,  
I would like to implement HTTP HEADER RESPONSE in order to all requests processed by haproxy must return a header to identify which HAProxy instance we are going through. That’s the first point.

The second point would be to all requests to applications hosted on a K8s cluster must return a header that identifies which cluster the application responding to us is on.

Do you think is that possible ?  
Thanks in advance for your opinion

Best regards

---

<div class="post-metadata">

**Author:** ![rhada](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.haproxy.org/rhada/32/585_2.png) [@rhada](https://discourse.haproxy.org/u/rhada)\
**Post date:** [August 25, 2021, 1:36pm UTC](https://discourse.haproxy.org/t/http-header-response/6855/2 "2021-08-25T13:36:15Z")

</div>

Hello,

You can try these :

Add a header field X-Via containing the client name of the current HAProxy server processing the traffic:

```auto
# Used in the a frontend, listen, or backend section
    http-response add-header X-Via %[env(HOSTNAME)]

```

Add a header field containing the back end and server name that processed the response:

```auto
# Used in the a frontend, listen, or backend section
    http-response add-header X-App-Server %b/%s

```

Both find on [haproxy.com](https://www.haproxy.com/documentation/aloha/latest/traffic-management/lb-layer7/http-rewrite/)

Hope it helps
