Posts: 720
Threads: 124
Joined: May 2019
09-17-2019, 07:55 AM
(This post was last modified: 09-17-2019, 07:55 AM by gReatAutomation.)
I have a need to be able to send an HTTP PUT command from a triggered action. I see there is an HTTPGet command in System but not an HTTPPut
The following is tested using Insomnia. I can send the HTTP PUT command to the URL with AUTH parameters set.
Posts: 40,483
Threads: 491
Joined: Aug 2002
09-17-2019, 01:02 PM
(This post was last modified: 09-17-2019, 01:02 PM by Dean Roddey.)
A put requires generally creating a message body, which would be kind of tricky in some cases as an action, particularly if it needs to be some structured format like XML or JSON.
You can of course write a very simple CML macro that does that, and just have the action pass it the basic info and let it format it up appropriately and send the PUT.
Dean Roddey
Explorans limites defectum
Posts: 720
Threads: 124
Joined: May 2019
(09-17-2019, 01:02 PM)Dean Roddey Wrote: A put requires generally creating a message body, which would be kind of tricky in some cases as an action, particularly if it needs to be some structured format like XML or JSON.
You can of course write a very simple CML macro that does that, and just have the action pass it the basic info and let it format it up appropriately and send the PUT.
Thanks. I did not think about thatÂ