• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webserver (REST API) - POST
#1
Is it possible to control the webservice (REST API) with a POST request in pilight 8.0?
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
What do I wrong?
 
Reply
  


Messages In This Thread
Webserver (REST API) - POST - by TopdRob - 10-25-2017, 08:57 PM
RE: Webserver (REST API) - POST - by curlymo - 10-25-2017, 09:06 PM
RE: Webserver (REST API) - POST - by TopdRob - 10-25-2017, 09:13 PM
RE: Webserver (REST API) - POST - by curlymo - 10-25-2017, 09:36 PM
RE: Webserver (REST API) - POST - by TopdRob - 10-25-2017, 09:55 PM
RE: Webserver (REST API) - POST - by curlymo - 10-25-2017, 10:22 PM
RE: Webserver (REST API) - POST - by TopdRob - 10-25-2017, 10:52 PM
RE: Webserver (REST API) - POST - by curlymo - 10-25-2017, 11:17 PM

Possibly Related Threads...
Thread Author Replies Views Last Post
  [Already fixed in 8.1.2] Loss of webserver-connection Ulrich.Arnold 34 2,688 08-02-2019, 02:25 PM
Last Post: curlymo
  REST API problem kaku_screen_old / elro_800_switch with pilight 8.1.4 pisperate 4 524 12-20-2018, 09:26 PM
Last Post: pisperate
  webserver-authentication problem with some browsers MorfelPi 4 1,910 09-21-2016, 06:59 PM
Last Post: Emiks5
  Using API webserver send page "message":"failed" fips 1 1,546 01-08-2016, 09:21 AM
Last Post: fips
  REST API - send behaviour joho 1 1,617 12-13-2015, 09:22 PM
Last Post: woutput
  webserver-authentication Luppie 6 2,871 08-03-2015, 03:31 PM
Last Post: curlymo
  Rest API in nightly Image seems not to work spooniester 2 1,978 06-25-2015, 10:07 AM
Last Post: spooniester
  getting values from pilight if webserver-authentication enabled shelby_cobra 2 1,821 06-03-2015, 11:35 PM
Last Post: shelby_cobra
  [Fully Supported] SSL support in webserver? Karel 18 11,547 05-29-2015, 10:26 PM
Last Post: curlymo
  Using API webserver send page gerrit312 5 3,526 05-28-2015, 01:37 PM
Last Post: diman87

Forum Jump:


Browsing: 1 Guest(s)