# How can fetch request headers cookie value in gatling

**URL:** <https://community.gatling.io/t/how-can-fetch-request-headers-cookie-value-in-gatling/8096>\
**Category:** Gatling (Open-Source)\
**Created:** [July 7, 2023, 7:19am UTC](https://community.gatling.io/t/how-can-fetch-request-headers-cookie-value-in-gatling/8096 "2023-07-07T07:19:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rajat](https://community.gatling.io/u/rajat)\
**Post date:** [July 7, 2023, 7:19am UTC](https://community.gatling.io/t/how-can-fetch-request-headers-cookie-value-in-gatling/8096/1 "2023-07-07T07:19:25Z")

</div>

i want to fetch value of JSESSIONID from cookie header from the request headers using gatling . how can i do it ?

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,_/_;q=0.8,application/signed-exchange;v=b3;q=0.7  
Accept-Encoding:gzip, deflate, br  
Accept-Language:en-IN,en-GB;q=0.9,en;q=0.8,en-US;q=0.7  
**Cookie** :JSESSIONID=58C6314802FA170E4DD1B9AA813232F4; atlassian.xsrf.token=BYHJ-QYVA-BYSV-X6QN\_244cdaa8ce4d42c37214da0d910d08aa0c190a05\_lout

---

<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:** [July 7, 2023, 10:17am UTC](https://community.gatling.io/t/how-can-fetch-request-headers-cookie-value-in-gatling/8096/2 "2023-07-07T10:17:02Z")

</div>

Why would you want to do that while Gatling automatically handles cookies?

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/2X/b/b148e0742de35c6280726cabf3ecd3de2d320f63.png) [@system](https://community.gatling.io/u/system)\
**Post date:** [August 6, 2023, 10:17am UTC](https://community.gatling.io/t/how-can-fetch-request-headers-cookie-value-in-gatling/8096/3 "2023-08-06T10:17:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
