# How to get Referer value that is added to the requst while sendimg

**URL:** <https://community.postman.com/t/how-to-get-referer-value-that-is-added-to-the-requst-while-sendimg/29040>\
**Category:** Help Hub\
**Tags:** authentication\
**Created:** [October 24, 2021, 9:32am UTC](https://community.postman.com/t/how-to-get-referer-value-that-is-added-to-the-requst-while-sendimg/29040 "2021-10-24T09:32:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjleshem](https://avatars.discourse-cdn.com/v4/letter/k/f4b2a3/32.png) [@kjleshem](https://community.postman.com/u/kjleshem)\
**Post date:** [October 24, 2021, 9:32am UTC](https://community.postman.com/t/how-to-get-referer-value-that-is-added-to-the-requst-while-sendimg/29040/1 "2021-10-24T09:32:20Z")

</div>

im trying to get a headers value - Referer that added while sendeing my request.  
i tried to get it with pm.request.headers.get(“Referer”)  
but it doesnt work.  
when im printing the headers list to console also its not there.  
but when im loojing to the request properties after sending it shows!

---

<div class="post-metadata">

**Author:** ![bbahadur](https://avatars.discourse-cdn.com/v4/letter/b/9de053/32.png) [@bbahadur](https://community.postman.com/u/bbahadur)\
**Post date:** [October 26, 2021, 1:50pm UTC](https://community.postman.com/t/how-to-get-referer-value-that-is-added-to-the-requst-while-sendimg/29040/2 "2021-10-26T13:50:53Z")

</div>

Hey @kjleshem!

Welcome to the community 🥳!

If you want to retrieve the header value before sending the request, in your Pre-request Script, try adding the following code.

```auto
var all_headers=pm.request.getHeaders();
var result=all_headers.Referer;
console.log("header : " + JSON.stringify(result));

```

Good luck.
