# Access Request Headers after hitting the request

**URL:** <https://community.postman.com/t/access-request-headers-after-hitting-the-request/36346>\
**Category:** Help Hub\
**Tags:** cookie, header, cookies, pre-request-script, request-params\
**Created:** [June 18, 2022, 10:50pm UTC](https://community.postman.com/t/access-request-headers-after-hitting-the-request/36346 "2022-06-18T22:50:45Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 20, 2022, 10:37am UTC](https://community.postman.com/t/access-request-headers-after-hitting-the-request/36346/4 "2022-06-20T10:37:08Z")

</div>

Ahh, I see, yes, slightly different to what I thought you meant.

There is some really good info on this topic here;

> [@Unable to read header value for a request that is sent in Pre-req](https://community.postman.com/t/unable-to-read-header-value-for-a-request-that-is-sent-in-pre-req/17250/3):
>
> Hey @baljindernohra, welcome! This can certainly seem tricky since you’re using pm.sendRequest to send your request instead of as a “proper” postman request. You are going to have to use the response variable from your callback instead of pm.response to get what you want. Take this example of calling the postman echo API: pm.sendRequest({ url: 'https://postman-echo.com/post', method: 'POST' }, function(err, res){ const location = res.headers.find(h =\> h.key == 'Location'); pm.…

Hopefully, this would help you!

---

_[View the full topic](https://community.postman.com/t/access-request-headers-after-hitting-the-request/36346)._
