For example if I send from the pc the curl command:
Code: Alles auswählen
curl "http://192.168.0.103/user/cgi-bin/edition.cgi" -H "Authorization: Basic YnN6OjE3OTMxMzc5" -d "gt=664" -s
I tried to write a script with curl or wget that would do the same thing and save my answer from the boiler to a variable, but every time I get a "false" response.
I wrote a ping script and I am getting response from the boiler.
Can anyone write me an example script, becauseI do not know if I am doing something wrong or is another problem.
Here is my script with curl:
Code: Alles auswählen
var url='"http://192.168.0.103/user/cgi-bin/edition.cgi"';
var cmd='"gt=664"';
var header='"Authorization: Basic YnN6OjE3OTMxMzc5"';
var comanda="/usr/local/addons/cuxd/extra/curl " # url # " -H " # header # " -d " # cmd # " -s ";
WriteLine(comanda);
WriteLine(dom.GetObject("CUxD.CUX2801001:1.CMD_EXEC").State(comanda));
Code: Alles auswählen
/usr/local/addons/cuxd/extra/curl "http://192.168.0.103/user/cgi-bin/edition.cgi" -H "Authorization: Basic YnN6OjE3OTMxMzc5" -d "gt=664" -s