# Keep alive headers not showing in the logs

**URL:** <https://community.gatling.io/t/keep-alive-headers-not-showing-in-the-logs/3069>\
**Category:** Gatling (Open-Source)\
**Created:** [June 13, 2016, 8:24pm UTC](https://community.gatling.io/t/keep-alive-headers-not-showing-in-the-logs/3069 "2016-06-13T20:24:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Henri\_Tremblay](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Henri\_Tremblay](https://community.gatling.io/u/Henri_Tremblay)\
**Post date:** [June 13, 2016, 8:24pm UTC](https://community.gatling.io/t/keep-alive-headers-not-showing-in-the-logs/3069/1 "2016-06-13T20:24:37Z")

</div>

Hi,

I’m using Gatling 2.2.1.

I was looking if keep-alive was really activated for Gatling. The keep-alive parameter is set to true in the configuration.

However, if I look at my request in the logs, I see this:

HTTP request:  
GET [https://stuff/img.png](https://stuff/img.png)  
headers=  
DNT: 1  
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_11\_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.49 Safari/537.36  
Accept: text/html,application/xhtml+xml,application/xml;  
Accept-Encoding: gzip, deflate, sdch, br  
Host: stuff

No header  
Connection:  
keep-alive

Is that normal? Is it added after?

(there is no keep-alive header in the response either)  
(I haven’t captured the traffic to see what actually went in the request but I can if needed)

Thanks,

Henri

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [June 13, 2016, 8:27pm UTC](https://community.gatling.io/t/keep-alive-headers-not-showing-in-the-logs/3069/2 "2016-06-13T20:27:48Z")

</div>

Perfectly normal.

HTTP/1.1: keep-alive is the default connection behavior, so you only specify it when you want “close”  
HTTP/1.0: the opposite

---

<div class="post-metadata">

**Author:** ![Henri\_Tremblay](https://avatars.discourse-cdn.com/v4/letter/h/82dd89/32.png) [@Henri\_Tremblay](https://community.gatling.io/u/Henri_Tremblay)\
**Post date:** [June 13, 2016, 8:40pm UTC](https://community.gatling.io/t/keep-alive-headers-not-showing-in-the-logs/3069/3 "2016-06-13T20:40:37Z")

</div>

Got it. Thanks
