# Access Response Header Value in HTTP Module

**URL:** <https://community.make.com/t/access-response-header-value-in-http-module/271>\
**Category:** Questions\
**Created:** [February 27, 2022, 11:35am UTC](https://community.make.com/t/access-response-header-value-in-http-module/271 "2022-02-27T11:35:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jorg\_Ackermann](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@Jorg\_Ackermann](https://community.make.com/u/Jorg_Ackermann)\
**Post date:** [February 27, 2022, 11:35am UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/1 "2022-02-27T11:35:14Z")

</div>

How can I access a specific response header value (e.g. “Location”) when performing a POST request using the HTTP module?

---

<div class="post-metadata">

**Author:** ![Bjorn.drivn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/bjorn.drivn/32/4503_2.png) [@Bjorn.drivn](https://community.make.com/u/Bjorn.drivn)\
**Post date:** [February 28, 2022, 9:38am UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/2 "2022-02-28T09:38:56Z")

</div>

Hi @Jorg_Ackermann ,  
Great question!

When using the HTTP module you can access the response headers by using the `Headers[]` from the output of the call. This would retrieve you an array with items having all headers within the request.

 ![Screenshot 2022-02-28 at 10.29.47](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/294e18f40dea507c19489e877c0266fafa9f2f4e.jpeg)

Now if you want to extract some kind of specific header value which has a specific key, you can use the `map()` and `get()` function.

First use map() to create a new array from a mapping you make:

```auto
{{map(1.headers; "value"; "name"; "headerkey")}}

```

This mapping basically says: “retrieve all values, where the name is equal to headerkey” (I placed a header in there with a key called “headerkey”.

 ![Screenshot 2022-02-28 at 10.30.59](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/e973cc8d8bedff7d875f48e78445814f9477c835.png)

Using the map() function you will get a new array. If you want to get a text value instead, use the get() function to retrieve the first and only item:

```auto
{{get(map(1.headers; "value"; "name"; "headerkey"); 1)}}

```

 ![Screenshot 2022-02-28 at 10.31.10](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/2f3e5ddce3afda5afdc37648c20fd705b3bd5ec6.png)  
 ![Screenshot 2022-02-28 at 10.31.16](https://europe1.discourse-cdn.com/flex013/uploads/make/original/1X/ffd3c9f87727929b725f51b34d3501429cc5c241.png)

Success! Hope this helps you.  
Let me know if you have any more questions.

---

<div class="post-metadata">

**Author:** ![devhype](https://avatars.discourse-cdn.com/v4/letter/d/c5a1d2/32.png) [@devhype](https://community.make.com/u/devhype)\
**Post date:** [April 25, 2023, 1:46pm UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/3 "2023-04-25T13:46:16Z")

</div>

Hello,  
is it also possible to get header from any other module and app which is not HTTP module? Is there any function for this?  
I don’t have any Headers array on input or ouput of that module when I run it.

Thank you!

---

<div class="post-metadata">

**Author:** ![Slawko](https://avatars.discourse-cdn.com/v4/letter/s/838e76/32.png) [@Slawko](https://community.make.com/u/Slawko)\
**Post date:** [May 3, 2023, 5:54pm UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/4 "2023-05-03T17:54:06Z")

</div>

You saved my day, thank you! It’s surprising that there is no easier way of getting out a single value from an array 😕

---

<div class="post-metadata">

**Author:** ![Bjorn.drivn](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/bjorn.drivn/32/4503_2.png) [@Bjorn.drivn](https://community.make.com/u/Bjorn.drivn)\
**Post date:** [May 4, 2023, 3:13pm UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/5 "2023-05-04T15:13:57Z")

</div>

No @devhype , unless the app is built like that, it won’t be possible.  
You can however use the Make Dev tool or Google Console and see the full request including headers.

 ![Screenshot 2023-05-04 at 17.12.44](https://europe1.discourse-cdn.com/flex013/uploads/make/original/2X/1/1f3c7e52eac81ef1c741eb2763c6a44f9a5ac2c2.png)

> [@Slawko](#):
>
> You saved my day, thank you! It’s surprising that there is no easier way of getting out a single value from an array 😕

No problem, it takes a little bit of practice yes. You don’t need to use the “Set Variables” module however, but that was just an example.

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [September 22, 2023, 1:05pm UTC](https://community.make.com/t/access-response-header-value-in-http-module/271/6 "2023-09-22T13:05:32Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


