# Http in HEAD Method

**URL:** <https://discourse.nodered.org/t/http-in-head-method/15546>\
**Category:** General\
**Created:** [14 September 2019 19:58 UTC](https://discourse.nodered.org/t/http-in-head-method/15546 "2019-09-14T19:58:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafaolivas](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@rafaolivas](https://discourse.nodered.org/u/rafaolivas)\
**Post date:** [14 September 2019 19:58 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/1 "2019-09-14T19:58:14Z")

</div>

Hello!

I'm trying to add an `http in` node that listens to a HEAD method request but this method is not in the list.

Is there any workaround for this? Maybe a global variable that I can set when Node-RED starts or something like that?

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 September 2019 20:08 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/2 "2019-09-14T20:08:16Z")

</div>

as per documentation  
[https://cookbook.nodered.org/http/set-request-header](https://cookbook.nodered.org/http/set-request-header)

---

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [14 September 2019 20:20 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/3 "2019-09-14T20:20:05Z")

</div>

No, those docs are specifically for http-request nodes, not http-in. I’m trying to think of something, but short of diving directly into express and add middleware for it I can’t come up with something

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [14 September 2019 21:04 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/4 "2019-09-14T21:04:23Z")

</div>

I see.

[That can be added](https://nodered.org/docs/user-guide/runtime/configuration) to settings.js (see middleware)

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [15 September 2019 08:44 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/5 "2019-09-15T08:44:30Z")

</div>

If you set it to GET - and it receives a HEAD request - I think it will do the right thing and just send the headers...

---

<div class="post-metadata">

**Author:** ![rafaolivas](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@rafaolivas](https://discourse.nodered.org/u/rafaolivas)\
**Post date:** [15 September 2019 18:18 UTC](https://discourse.nodered.org/t/http-in-head-method/15546/6 "2019-09-15T18:18:46Z")

</div>

You are totally right! It works perfectly. Can't believe I didn't tried that before. Thank you!
