Http/tcp nodes. Input vs output. Help

Looking in the output set of nodes there is a http response node which

Sends responses back to requests received from an HTTP Input node.

Yeah, ok. I'll read that as this machine is the one which got the request via the input node.

But when I open the node I see/read:

The messages sent to this node must originate from an http input node

That confuses me.

If the input / "message sent to this node" must originate from an http input node......
I read that as I get the input node and it's output has to go to the output node.
(though as I read it, it is actually a http response node. NOT input!)

And so nothing happens to the message.

Now onto the problem/project:
Though it has been said I should use a different player, I am using VLC player to play music on a remote machine.

I've got some docs from the forum and though I am still not fully understanding them, I have started.

I send a HTTP message to VLC and it does what it is told to do.

But I am not getting how to use NR to create the message given the http output node says its input must come from a http response node. (Paraphrasing it to comply with the names.)

The key word is originate. This does not mean the In node must be wired directly to the response node. It means any message that you pass to the response node must have started its life at the In node, but may well pass through other nodes along the way.

But it sounds like you want to send an http request from NR and send it to VLC. In that case use the HTTP Request node, not the In/Response nodes.

Thanks Nick.

Alas I am (again) failing to see a HTTP Request node.

Screenshot%20from%202019-11-13%2013-21-56

Is all I can see.

I'll check if it is a "third party" node.
(yeah, I should have checked before I posted.)

contrib-http-request?
This one?

And is that the end of the "line" in the flow? Or do I need to hook up a node to send the payload?

ITMT, I found this link too.

VLC RC socket.

But it doesn't seem to work.

(New thread on that matter)

Type 'http' in the 'filter nodes' field on the top, it is there, unless you specifically disabled it in 'manage palette'.
43

Interesting.

I don't see it and to the best of my knowledge I have never disabled it.

Screenshot%20from%202019-11-13%2017-28-22

As @bakman2 said, use the filter box at the top of the palette to search for it.

In 1.0 we reorganised the palette and moved nodes around. The screenshot from bakman is of 1.0 where all the http nodes were moved together into the 'network' category.

Your screenshot suggests you are on an earlier version, so don't just look in the network category as the node isn't in that category. Use the filter.

This is what I get.

Understand that the rest of the list is blank/empty.

The one you see is the third party one I installed.

I'm pretty sure that isn't the third party node and is the core request node.

Well, ok.

I was looking for it, didn't find it and so asked about it here:

This one?

and I installed it.

Which version of node-red do you use on this machine ?

0.20.5

That's from the menu at the bottom.

No. You are looking at the core http request node.

The extra node you installed is labelled 'www-request' when it appears in the palette.

1 Like

Argh!

Ok.

I guess "Mia cupla" for that. But that is not nice how the node describes itself and installs itself with a different name.

Ok. Now I am on the same page.....