10-25-2017, 08:57 PM
Is it possible to control the webservice (REST API) with a POST request in pilight 8.0?
GET is working fine:
However when I send a POST request:
pilight is going down with this error:
What do I wrong?
GET is working fine:
Code:
http://raspberrypi-prd:5001/control?device=koplamp&state=off
However when I send a POST request:
Code:
http://raspberrypi-prd:5001/control
BODY
data:device=koplamp&state=on
pilight is going down with this error:
Code:
[Oct 25 19:50:06:322377] pilight-daemon: INFO: client connected, ip 10.0.0.73, port 59388
-- STACKTRACE (4 FRAMES) --
webserver_mimetype ip = 0x7672a5d8, sp = 0x713f5898
webserver_clientize ip = 0x7672ca34, sp = 0x713f5898
clone ip = 0x76456be8, sp = 0x713f5898
segmentation fault