# Request headers are not getting sent

**URL:** <https://community.postman.com/t/request-headers-are-not-getting-sent/17440>\
**Category:** Help Hub\
**Created:** [November 5, 2020, 2:53pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440 "2020-11-05T14:53:36Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmacnaught](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jmacnaught](https://community.postman.com/u/jmacnaught)\
**Post date:** [November 5, 2020, 2:53pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/1 "2020-11-05T14:53:36Z")

</div>

I set a custom header, but it is not getting sent. This has worked in the past, but I cannot recall exactly when.

The CURL code snippet shows it, but the console log does not, and the server does not receive it.

CURL:

```auto
curl --location --request GET 'http://localhost:8083/ift/api/visibility/v3/products' \
--header 'ift-temp-limit: 2' \
--header 'Authorization: Bearer XXX'

```

Console log message:

```auto
GET /ift/api/visibility/v3/products HTTP/1.1
Authorization: Bearer XXX
User-Agent: PostmanRuntime/7.26.8
Accept: */*
Cache-Control: no-cache
Postman-Token: f9be2868-bafc-4454-b13b-1e526ee53adf
Host: localhost:8083
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

```

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [November 5, 2020, 3:04pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/2 "2020-11-05T15:04:34Z")

</div>

Hey @jmacnaught,  
Welcome to the community 👋  
This is an interesting situation. Could you share information about how you’re setting the headers, screenshots maybe?  
I could try reproducing it at my end, if that helps.

Thanks,  
Meena

---

<div class="post-metadata">

**Author:** ![jmacnaught](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jmacnaught](https://community.postman.com/u/jmacnaught)\
**Post date:** [November 5, 2020, 3:21pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/3 "2020-11-05T15:21:53Z")

</div>

Thanks, Meena

Here is a screen shot of the UI. I have checked the header to enable it. I usually have a variable name there, but I’m using a directly entered value in this test.

 ![Postman_and_Request_headers_are_not_getting_sent_-Help-_Postman](https://us1.discourse-cdn.com/getpostman/original/3X/5/2/5277ff449fa565a3b7d4c26db33c56558cc023ec.png)

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [November 5, 2020, 3:32pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/4 "2020-11-05T15:32:39Z")

</div>

All seems fine I guess.  
Could you try importing this template by selecting the _Run in Postman_ option on top. There’s a request that sends Headers in there. If that works then maybe we can compare why this isn’t working.  
[https://docs.postman-echo.com/#da16c006-6293-c1fe-ea42-e9ba8a5e68b1](https://docs.postman-echo.com/#da16c006-6293-c1fe-ea42-e9ba8a5e68b1)

---

<div class="post-metadata">

**Author:** ![jmacnaught](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jmacnaught](https://community.postman.com/u/jmacnaught)\
**Post date:** [November 5, 2020, 3:39pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/5 "2020-11-05T15:39:41Z")

</div>

The Echo request worked correctly:

 ![Postman_and_Request_echo_request](https://us1.discourse-cdn.com/getpostman/original/3X/9/4/94e715820b8947ca7097044a07e5f558698e6a8a.png)

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [November 5, 2020, 3:42pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/6 "2020-11-05T15:42:20Z")

</div>

So there’s probably something we might be missing in the other request. 🧐

---

<div class="post-metadata">

**Author:** ![jmacnaught](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@jmacnaught](https://community.postman.com/u/jmacnaught)\
**Post date:** [November 5, 2020, 3:47pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/7 "2020-11-05T15:47:31Z")

</div>

All my collections have been imported from OpenAPI 3.0 spec. I created a new collection and added a single request, and that request sends the header correctly. So, at this point, I can only guess that the import sets or fails to set something.

---

<div class="post-metadata">

**Author:** ![meenakshi.dhanani](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/meenakshi.dhanani/32/5980_2.png) [@meenakshi.dhanani](https://community.postman.com/u/meenakshi.dhanani)\
**Post date:** [November 5, 2020, 4:37pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/8 "2020-11-05T16:37:24Z")

</div>

So I generated a collection from an OpenAPI spec and modified a request to include some headers. I was able to see those headers in the request under Console.

---

<div class="post-metadata">

**Author:** ![simon.hurst](https://avatars.discourse-cdn.com/v4/letter/s/8e7dd6/32.png) [@simon.hurst](https://community.postman.com/u/simon.hurst)\
**Post date:** [December 5, 2020, 12:27pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/9 "2020-12-05T12:27:02Z")

</div>

Having the same issue. I tried adding some new headers today, and the old headers are still being sent but the new headers aren’t. I’ve check the server to see what’s it’ getting and it’s basically not sending the newly added headers

---

<div class="post-metadata">

**Author:** ![aerospace-geologist7](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@aerospace-geologist7](https://community.postman.com/u/aerospace-geologist7)\
**Post date:** [September 2, 2022, 2:31pm UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/10 "2022-09-02T14:31:14Z")

</div>

I found out it was my server eating the headers (Authorization header in my case). This code helped me, just place in your .htaccess file

# Allow Authorization header to be passed to PHP

CGIPassAuth on

---

<div class="post-metadata">

**Author:** ![francis\_scott](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@francis\_scott](https://community.postman.com/u/francis_scott)\
**Post date:** [October 19, 2022, 6:56am UTC](https://community.postman.com/t/request-headers-are-not-getting-sent/17440/11 "2022-10-19T06:56:33Z")

</div>

This fixed it for me, thank you!
