# Html request does not forward request body

**URL:** <https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887>\
**Category:** General\
**Created:** [19 May 2021 02:47 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887 "2021-05-19T02:47:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [19 May 2021 02:47 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/1 "2021-05-19T02:47:10Z")

</div>

Hi,

I set up OOB html request node using basic authentication and TLS/SSL to IXIA REST api. The request body is not sent. On the same server where node-red is installed I can use curl with the same data and it works fine. Additionally Postman also has success to the same api endpoint. I have these settings:

header:  
Content-Type: "application/json" // the server will not accept (x-www-form-urlencoded etc)  
Authorization: Basic ...

method: "POST" // but also fails to send body on PUT method  
payload: {json payload}

I also had setup REST api to elastic from same server and this works in node-red (html request) request body is sent.

When testing with curl the only difference I can see between the elastic and ixia apis is that the ixia api wants to use cipher: ECDHA-RSA-AES128-GSM-SHA256

I am running node.js 12.21.1 and node-red 1.3.4  
no errors are thrown in consoles.

I had this api in another server and had the same issue in that server however after a server restart it mysteriously started to work there. Going back to that server now the same fault of the request body is not sent is back and nothing I do resolves this issue.

Any ideas? Does the version of node.js not support this particular cipher??  
Any help appreciated.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 May 2021 19:10 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/2 "2021-05-19T19:10:58Z")

</div>

You need to share the settings of the node.

---

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [21 May 2021 04:27 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/3 "2021-05-21T04:27:28Z")

</div>

See here for the flow:

```auto
[{"id":"1057c3fd.2d96ec","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"9779d254.d60b1","type":"function","z":"1057c3fd.2d96ec","name":"filters/search","func":"msg={};\nmsg.payload={name:\"ExtraHop EDA\"}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":550,"y":240,"wires":[["6d565bd5.82bd34"]]},{"id":"6d565bd5.82bd34","type":"http request","z":"1057c3fd.2d96ec","name":"","method":"POST","ret":"obj","paytoqs":"ignore","url":"https://10.112.138.138:2002/api/filters/search","tls":"9b4d8ca0.af7b6","persist":false,"proxy":"","authType":"basic","x":600,"y":300,"wires":[["9044a948.da3b38"]]},{"id":"9044a948.da3b38","type":"debug","z":"1057c3fd.2d96ec","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":800,"y":300,"wires":[]},{"id":"b6bd6e15.14b2c","type":"inject","z":"1057c3fd.2d96ec","name":"go","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":520,"y":180,"wires":[["9779d254.d60b1"]]},{"id":"9b4d8ca0.af7b6","type":"tls-config","name":"Ixia","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false}]

```

---

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [21 May 2021 04:30 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/4 "2021-05-21T04:30:31Z")

</div>

also the server I am running this on is SUSE12 SP4

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [21 May 2021 08:17 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/5 "2021-05-21T08:17:46Z")

</div>

It is just the node's settings we need for now. Can't really load flows for every issue in the forum.

---

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [24 May 2021 01:19 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/6 "2021-05-24T01:19:49Z")

</div>

which settings are you after? ~/.node-red/settings.js ? or just the html request node settings? or node.js settings? thx.

---

<div class="post-metadata">

**Author:** ![kevinGodell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kevingodell/32/27040_2.png) [@kevinGodell](https://discourse.nodered.org/u/kevinGodell)\
**Post date:** [24 May 2021 10:45 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/7 "2021-05-24T10:45:11Z")

</div>

Can you fix your shared flow? I tried to import it but something is not right due to the missing ``` at the end.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [24 May 2021 19:44 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/8 "2021-05-24T19:44:44Z")

</div>

As I said, the node's settings.

---

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [24 May 2021 23:32 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/9 "2021-05-24T23:32:10Z")

</div>

@TotallyInformation Is this what you are after?:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/6/a6c1b93fe834d604f58966b268bf329b19c0cee2.png)

---

<div class="post-metadata">

**Author:** ![skipware](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@skipware](https://discourse.nodered.org/u/skipware)\
**Post date:** [24 May 2021 23:35 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/10 "2021-05-24T23:35:21Z")

</div>

@kevinGodell Hi Kevin, I just used the copy button (top right) of my post with the flow json and imported back into nodeRED with out issue. not sure what else I can do.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [23 July 2021 23:36 UTC](https://discourse.nodered.org/t/html-request-does-not-forward-request-body/45887/11 "2021-07-23T23:36:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
