# Sending HTTP POST Requests

**URL:** <https://discourse.nodered.org/t/sending-http-post-requests/20279>\
**Category:** General\
**Created:** [13 January 2020 19:25 UTC](https://discourse.nodered.org/t/sending-http-post-requests/20279 "2020-01-13T19:25:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGRAY325](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgray325/32/20111_2.png) [@DGRAY325](https://discourse.nodered.org/u/DGRAY325)\
**Post date:** [13 January 2020 19:25 UTC](https://discourse.nodered.org/t/sending-http-post-requests/20279/1 "2020-01-13T19:25:01Z")

</div>

I have a software that offers a REST API with a ton of tools to test and implement custom integrations. I'm new to all this and hoping someone could guide me in the right direction. I setup a basic flow using an inject, http request, and msg node. One of the tools this API offers is a generic events generator, I can successfully use it to push an event into the software with this requesting URL :[http://10.21.16.170:7001/api/createEvent?source=DOOR](http://10.21.16.170:7001/api/createEvent?source=DOOR).  
I have setup the node like this:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d75d08aeac6dd879adb907f77967ccaf1db90fe4.png)

I get the following: {"\_msgid":"b9ce20e.26a7fe","topic":"","payload":"Unauthorized

# 401 Unauthorized
","statusCode":401,"headers":{"date":"Mon, 13 Jan 2020 14:17:58 -0500","connection":"Keep-Alive","keep-alive":"timeout=5","content-type":"text/html; charset=utf-8","x-auth-result":"Auth\_WrongDigest","x-server-guid":"{d63412df-4bbf-2528-2fed-9f023947c9cd}","content-length":"84","www-authenticate":"Digest realm="VMS", nonce="vkbXhZOz4lnXnlm9oyIa0Sw4B7G0ek=hzciip", algorithm=MD5","access-control-allow-origin":"\*","x-node-red-request-node":"46737d14"},"responseUrl":"[http://10.21.16.170:7001/api/createEvent?source=DOOR","redirectList](http://10.21.16.170:7001/api/createEvent?source=DOOR%22,%22redirectList)":}

My headers when using the generic event generator look like this, I am pretty sure this is the problem just dont know how to fix it.....

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/7/079d312f7428a18601121d91cb6d1850982cf830.png)

I also would like to be able to send requests from my software to Node.Red.......any help would be greatly appreciated.

---

<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:** [13 January 2020 20:19 UTC](https://discourse.nodered.org/t/sending-http-post-requests/20279/2 "2020-01-13T20:19:23Z")

</div>

The response if 401 - Unauthorized - yet you don't have authentication selected (or configured) in the request node... so...

---

<div class="post-metadata">

**Author:** ![DGRAY325](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dgray325/32/20111_2.png) [@DGRAY325](https://discourse.nodered.org/u/DGRAY325)\
**Post date:** [13 January 2020 22:00 UTC](https://discourse.nodered.org/t/sending-http-post-requests/20279/3 "2020-01-13T22:00:33Z")

</div>

Yes thank you, shortly after writing this I realized that. All set.

---

<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 January 2020 12:43 UTC](https://discourse.nodered.org/t/sending-http-post-requests/20279/4 "2020-01-14T12:43:18Z")

</div>

one more thing, your title mentions POST requests, but you've the http-request node configured to use GET requests. Might help for future issues.
