to connect to a small app which transform an old smartphone into an Ip Camera, I use CamON Live, no problem to use http request Get (I sax it in the example), but to do a poste request, it is not working, can anyone help me, and for the future, is it possible Bill to post an exemple of post method in the documentation for newbies like me ?
here is an extract of the API :
It is possible to control the app remotely by sending POST requests to the URL
The request’s body should be plain text, specifying one or more commands to execute; the headers should contain Content-Type: text/plain .
Commands can be specified once per row, in the form command=parameters ; rows may be either \n or \r\n terminated.
It is also possible to use a GET request and specify one or more commands in the query string, using the same form command=parameters for each.
alarm=play [v:<volume>] [r:<repetitions>]
Activate vibration for the specified duration, if supported by the device.
volume (int) - the sound volume, in percent, default is 100%
repetitions (int) - how many times to repeat the sound, default is 0
What I tried is this :
var response =http.post(“http://xxxx:email@example.com:xxx/control”,“alarm=play [v:20] [r:0]”)
when there was the http client device, it was working, so I known it can work, but how ?