# Help with the HTTP request node

**URL:** https://discourse.nodered.org/t/help-with-the-http-request-node/100766
**Category:** General
**Created:** [14 April 2026 12:02 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766 "2026-04-14T12:02:26Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 12:02 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/1 "2026-04-14T12:02:26Z")

</div>

I need to send a request, containing '\<' and '\>' as content, to a webhook.  
Using webhook.site, I can see, that there are many '%3C' and '%3E's in the url while in debug panel it shows the original term. Here's an example:

```auto
https://webhook.site/330debe9-0f95-4805-a766-09cace553fcb?login=login_dl&password=password&type=import&really=1&content={<active_item/><new_item/><stationname.short>apiKeyPROTO</stationname.short><message><item.artist>testArtist</item.artist>+-+<item.title>meTitle</item.title></message>}

```

while webhook.site shows:

```auto
https://webhook.site/330debe9-0f95-4805-a766-09cace553fcb?login=login_dl&password=password&type=import&really=1&content={%3Cactive_item/%3E%3Cnew_item/%3E%3Cstationname.short%3EapiKeyPROTO%3C/stationname.short%3E%3Cmessage%3E%3Citem.artist%3EtestArtist%3C/item.artist%3E+-+%3Citem.title%3EmeTitle%3C/item.title%3E%3C/message%3E}

```

But this seems to be a problem for the target webhook...

Does anybody have an idea?  
Thanks a lot!  
Florian

---

<div class="post-metadata">

### Author: ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)
#### Post date: [14 April 2026 12:17 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/2 "2026-04-14T12:17:26Z")

</div>

You could try something like this in a function node (untested as not near my PC)...

```auto
msg.url = "https://webhook.site/330debe9-0f95-4805-a766-09cace553fcb";

msg.payload = {
    login: "login_dl",
    password: "password",
    type: "import",
    really: 1,
    content: `<active_item/><new_item/><stationname.short>apiKeyPROTO</stationname.short><message><item.artist>testArtist</item.artist>+-+<item.title>meTitle</item.title></message>`
};

return msg;

```

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 13:36 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/3 "2026-04-14T13:36:52Z")

</div>

Thanks Dave,

but sorry, my fault: it's a GET request, so no payload inside...

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [14 April 2026 15:00 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/4 "2026-04-14T15:00:01Z")

</div>

Can you post a simple flow showing the problem? Preferably just an Inject node and the http node, so we can see exactly what you are doing.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [14 April 2026 15:12 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/5 "2026-04-14T15:12:17Z")

</div>

You can set the http request node to append the payload query strings, in a get request  
payload - `Append to query-string parameters`

Or use a template node to construct the URL using {{{ }}} to ignore html parsing of input variable. Read the sidebar help section.

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 15:14 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/6 "2026-04-14T15:14:33Z")

</div>

```flows
[
    {
        "id": "b9f5087df343d410",
        "type": "group",
        "z": "be78e41b9d95865c",
        "name": "DLplus A-T",
        "style": {
            "label": true
        },
        "nodes": [
            "b19c8858b209f8ee",
            "79de4164e7fd70c7",
            "b6bfbdb005e8affd",
            "8b1c012c8a8489fd"
        ],
        "x": 54,
        "y": 1139,
        "w": 952,
        "h": 82
    },
    {
        "id": "b19c8858b209f8ee",
        "type": "inject",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "Trigger",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 150,
        "y": 1180,
        "wires": [
            [
                "79de4164e7fd70c7"
            ]
        ],
        "icon": "font-awesome/fa-mouse-pointer"
    },
    {
        "id": "79de4164e7fd70c7",
        "type": "function",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "create DLplus A-T",
        "func": "let Data = {\n DlUrl: `https://webhook.site/88f91c09-92d7-44f0-ac91-86f78b2cd771`,\n login: `Login`,\n password: `pass`,\n station: `stationName` \n};\nlet trackArtistPlus = `theArtist`;\nlet trackTitlePlus = `theTitle`;\nlet DLplusUrl = `${Data.DlUrl}?login=${Data.login}&password=${Data.password}&type=import&really=1&content={<active_item/><new_item/><stationname.short>${Data.station}</stationname.short><message><item.artist>${trackArtistPlus}</item.artist>+-+<item.title>${trackTitlePlus}</item.title></message>}`;\nDLplus = {url: DLplusUrl};\nDLplus.rejectUnauthorized = false;\nDLplus.type = \"DLplus (GET)\"; // Info only...\nDLplus.method = \"GET\";\n\nreturn DLplus;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 370,
        "y": 1180,
        "wires": [
            [
                "8b1c012c8a8489fd"
            ]
        ]
    },
    {
        "id": "b6bfbdb005e8affd",
        "type": "debug",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "show DLplus Answer",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 1180,
        "wires": []
    },
    {
        "id": "8b1c012c8a8489fd",
        "type": "http request",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "",
        "method": "use",
        "ret": "txt",
        "paytoqs": "ignore",
        "url": "",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": false,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 610,
        "y": 1180,
        "wires": [
            [
                "b6bfbdb005e8affd"
            ]
        ]
    }
]

```

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 15:26 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/7 "2026-04-14T15:26:56Z")

</div>

Hm... Tried  
{{{url}}}  
in the URL field, but it outputs the same...

And I can't find how to Append to query-string parameters. Do you have a few further hints for me? (the "Disable strict HTTP parsing" option doesn't change anything)

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [14 April 2026 15:30 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/8 "2026-04-14T15:30:25Z")

</div>

Set the http node to get, not by method, then it is available as a dropdown.

can you show us msg.req after the http request node?

---

<div class="post-metadata">

### Author: ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)
#### Post date: [14 April 2026 15:45 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/9 "2026-04-14T15:45:21Z")

</div>

When sharing code, [this is the best (and only) way to do it](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506) so that people can help you. An image just shows the Node Blocks and not what they contain.

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 15:45 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/10 "2026-04-14T15:45:25Z")

</div>

Thanks! Since I always try to get everything controlled by function nodes...

The node seems not do accept the payload...

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 15:48 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/11 "2026-04-14T15:48:18Z")

</div>

That's what I did... 🤔

Did you switch to the **Toggle Flows/Source** option in the lower right corner?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/4/146e3d953cff3b5842c4ee6db4711326bf8f8246.png)

(the { } symbol)

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 15:54 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/12 "2026-04-14T15:54:51Z")

</div>

Here's what I tried:

```flows
[
    {
        "id": "b9f5087df343d410",
        "type": "group",
        "z": "be78e41b9d95865c",
        "name": "DLplus A-T",
        "style": {
            "label": true
        },
        "nodes": [
            "b19c8858b209f8ee",
            "79de4164e7fd70c7",
            "b6bfbdb005e8affd",
            "8b1c012c8a8489fd",
            "a584144af6540ef9"
        ],
        "x": 54,
        "y": 1139,
        "w": 952,
        "h": 122
    },
    {
        "id": "b19c8858b209f8ee",
        "type": "inject",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "Trigger",
        "props": [],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "x": 150,
        "y": 1220,
        "wires": [
            [
                "79de4164e7fd70c7"
            ]
        ],
        "icon": "font-awesome/fa-mouse-pointer"
    },
    {
        "id": "79de4164e7fd70c7",
        "type": "function",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "create DLplus A-T",
        "func": "let Data = {\n DlUrl: `https://webhook.site/88f91c09-92d7-44f0-ac91-86f78b2cd771`,\n login: `Login`,\n password: `pass`,\n station: `stationName` \n};\nlet trackArtistPlus = `theArtist`;\nlet trackTitlePlus = `theTitle`;\nDLplus = {url: Data.DlUrl};\nDLplus.payload = `login=${Data.login}&password=${Data.password}&type=import&really=1&content={<active_item/><new_item/><stationname.short>${Data.station}</stationname.short><message><item.artist>${trackArtistPlus}</item.artist>+-+<item.title>${trackTitlePlus}</item.title></message>}`;\nDLplus.rejectUnauthorized = false;\nDLplus.type = \"DLplus (GET)\"; // Info only...\n\nreturn DLplus;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 370,
        "y": 1220,
        "wires": [
            [
                "8b1c012c8a8489fd",
                "a584144af6540ef9"
            ]
        ]
    },
    {
        "id": "b6bfbdb005e8affd",
        "type": "debug",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "show DLplus Answer",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 860,
        "y": 1220,
        "wires": []
    },
    {
        "id": "8b1c012c8a8489fd",
        "type": "http request",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "",
        "method": "GET",
        "ret": "txt",
        "paytoqs": "query",
        "url": "",
        "tls": "",
        "persist": false,
        "proxy": "",
        "insecureHTTPParser": true,
        "authType": "",
        "senderr": false,
        "headers": [],
        "x": 610,
        "y": 1220,
        "wires": [
            [
                "b6bfbdb005e8affd"
            ]
        ]
    },
    {
        "id": "a584144af6540ef9",
        "type": "debug",
        "z": "be78e41b9d95865c",
        "g": "b9f5087df343d410",
        "name": "payload",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 600,
        "y": 1180,
        "wires": []
    }
]

```

But I get an "invalid payload" message from the request node. Does it expect a different format?

---

<div class="post-metadata">

### Author: ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)
#### Post date: [14 April 2026 15:58 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/13 "2026-04-14T15:58:26Z")

</div>

No, I didn’t, because I thought the boxes at the bottom were part of the image. (I must read up on these features it this is new!) But then, selfishly, I need to do another action and download a file to my computer, before I can begin to help,

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [14 April 2026 15:58 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/14 "2026-04-14T15:58:36Z")

</div>

Try putting it in the payload property as @dynamicdave described [here](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/2)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [14 April 2026 16:04 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/15 "2026-04-14T16:04:21Z")

</div>

> [@mudwalker](#):
>
> I need to do another action and download a file to my computer, before I can begin to help,

You can click the Copy Flow to Clipboard button (second from the left).

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 16:09 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/16 "2026-04-14T16:09:57Z")

</div>

Okay, so I can do both! 😉  
First, that's the payload:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/c/2c8b6ec2fa78ca0aa1d0c32c734bcce7596a0d03.png)  
And now it accepts the payload (only a few steps later...), but the answer (and also the input shown on the webhook.site panel) keeps the same.

Here's webhook's answer (formatted as code because the editor interpreted a couple of the problems itself...):

```auto
responseUrl: "https://webhook.site/88f91c09-92d7-44f0-ac91-86f78b2cd771?login=login_dl&password=password&type=import&really=1&content=%3Cactive_item%2F%3E%3Cnew_item%2F%3E%3Cstationname.short%3EapiKeyPROTO%3C%2Fstationname.short%3E%3Cmessage%3E%3Citem.artist%3EtestArtist%3C%2Fitem.artist%3E%2B-%2B%3Citem.title%3EmeTitle%3C%2Fitem.title%3E%3C%2Fmessage%3E"

```

Seems to be kind of a limitation/speciality of the used 'get' library?

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [14 April 2026 16:26 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/17 "2026-04-14T16:26:58Z")

</div>

What is returned if you paste the url in the browser?

As to me it looks like the webook site is not accepting a properly formated and encoded url query string.

---

<div class="post-metadata">

### Author: ![FloRu](https://avatars.discourse-cdn.com/v4/letter/f/db5fbb/32.png) [@FloRu](https://discourse.nodered.org/u/FloRu)
#### Post date: [14 April 2026 18:07 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/18 "2026-04-14T18:07:25Z")

</div>

Its behaviour is similar to the webhook that I have to send my data to.

The interesting thing is, that the software that I want to replace uses an engine (maybe) from or at least like mozilla, and the webhook interprets the content correct. So my guess is that I have to try to get the same result until my piece of software will work as expected.

When I paste the url into Safari, it will get "corrected" the wrong way.

Well, without any help from the other side (of the desired webhook), I think I have to cancel this "project" because it seems to me not clear enough, if that is the true problem...  
And on the other side it would be interesting, if I could find a solution on this behaviour...

Thanks for your help!

---

<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: [13 July 2026 18:07 UTC](https://discourse.nodered.org/t/help-with-the-http-request-node/100766/19 "2026-07-13T18:07:33Z")

</div>

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