Page 1 of 1

Problem JSON -> "type=command&param="

Posted: Friday 20 November 2015 11:13
by warp
I have a problem with my JSON all commands beginning with "type=command&param=", eg:

Code: Select all

curl http://127.0.0.1:8080/json.htm?type=command&param=getuservariables
{
   "status": "ERR"
}
curl http://127.0.0.1:8080/json.htm?type=command&param=system_reboot
{
   "status": "ERR"
}
Why ?

Re: Problem JSON -> "type=command&param="

Posted: Friday 20 November 2015 11:18
by warp
Sorry i ave forget the escape key.

Code: Select all

curl http://127.0.0.1:8080/json.htm?type=command\&param=getuservariables
{
   "result" : [
      {
         "LastUpdate" : "2015-11-20 11:04:57",
         "Name" : "test",
         "Type" : "0",
         "Value" : "1",
         "idx" : "1"
      }
   ],
   "status" : "OK",
   "title" : "GetUserVariables"
}