We solved the issue by adopting the WD message according to the working examples which we checked in more detail.
As said above, currently WD supports only HTTP GET request via commands. To send HTTP POST requests, the workaround is to send messages with a TCP Client. The messages must include special header information and the command itself.
Rutger solved the issue by setting up a temporary TCP Server (Multi!) to which he sent the Postman/Companion messages from which he knew that they were working. So instead of sending them to the BlueRiver Control Server, he sent them to Widget to have a closer look.
- Code: Select all
Please create a TCP Server (Multi!) in the Connection Manager on port 8081 (remember the ID, probably 1). If you right-click it there, you can choose "Test" and it shows incoming messages in a list format, character by character (including CR and LF). If you now create a Node > Input > Connections > TCP Input and set it to the ID from the Connection Manager it shows incoming messages in a more readable way.
He then discovered the following and changed the WD message accordingly and it worked. See below a working example:
- both messages show a space after "POST" which is not included in the initial example above
- The User Agent is not necessary
- Host info is included => I think that is very important
- the Content-Length / number of spaces matter
Thanks everybody for your help on this task!
You do not have the required permissions to view the files attached to this post.