[RESOLVED] HTTP POST in a scene

Hello,

I’ve spent quite a bit of time digging through both the forum and the Gladys docs, but I can’t get a POST request to send correctly within a scene… Would a kind soul have a bit of time to explain how to go about sending JSON?

Thanks in advance,
Jean

Hi, is this what you want?

Hi @Hizo,

First of all I want to thank you for your replies, which help me find the solution every time. I hope it will be the case again here!

Here’s what I do for the « POST » action:

And what is received on the server side:

It seems that the content sent in the body isn’t arriving?

If I do the same thing from a shell, everything works as expected:
image

The text is spoken and on the server side:

If you have any idea, I’d appreciate it … Thanks in advance :slight_smile:

What if you add a header like with curl?

Click the + below Headers,

2 Likes

Well, as mentioned above, I can only thank you again @Hizo :+1: Gladys can now converse with the users present at home! I’ll start sending emails right away :innocent:

2 Likes