Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sending HTTP PUT Commands
#1
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

[Image: Screen-Shot-2019-09-17-at-11-53-49.jpg]


The following is tested using Insomnia. I can send the HTTP PUT command to the URL with AUTH parameters set.

[Image: Screen-Shot-2019-09-17-at-11-51-45.jpg]
Reply
#2
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
Reply
#3
(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  Cool
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple HTTP Call to Device from CQC mjwhite214 19 4,111 01-23-2020, 03:35 PM
Last Post: simplextech
  Train HTTP Trigger Driver jkmonroe 24 11,421 10-25-2016, 11:55 AM
Last Post: karenlee
  Serial Commands for Hunter Douglas Hub! Deane Johnson 65 12,126 07-19-2016, 07:26 AM
Last Post: Dean Roddey
  Help setting up GeoFancy & HTTP Trigger driver Sendero 10 3,852 04-20-2015, 11:08 AM
Last Post: bbrendon
  Inserting a delay between commands? jokermac 3 1,760 03-25-2015, 07:37 PM
Last Post: Dean Roddey
  Interface Commands finish.06 7 2,681 06-13-2014, 07:20 AM
Last Post: Dean Roddey
  HTTP Trigger Driver EST 5 2,978 08-01-2013, 05:59 AM
Last Post: EST
  HTTP Get Driver - I'm learning... batwater 6 2,303 07-29-2013, 08:43 PM
Last Post: Dean Roddey
  Sending HTML commands to Blue Iris standon 2 4,731 06-28-2011, 09:05 AM
Last Post: Dean Roddey
  Elk Keypad Commands liftn 27 6,340 12-08-2009, 03:01 PM
Last Post: Dean Roddey

Forum Jump:


Users browsing this thread: 1 Guest(s)