I am trying to read some status value from the log from json
Code: Select all
curl http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog&lastlogtime=0&loglevel=268435455
Code: Select all
{ "status" : "ERR" }
What am i doing wrong ?
Moderator: leecollings
Code: Select all
curl http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog&lastlogtime=0&loglevel=268435455
Code: Select all
{ "status" : "ERR" }
you could try withzicht wrote: ↑Thursday 30 August 2018 21:42 I am trying to read some status value from the log from jsonResponse i get :Code: Select all
curl http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog&lastlogtime=0&loglevel=268435455
If i copy the same url to my browser i get perfecty i json respond with the log entries.Code: Select all
{ "status" : "ERR" }
Code: Select all
curl -s -X GET http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog&lastlogtime=0&loglevel=268435455"
Code: Select all
commando='curl "http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog"'
Yes sorry for omitting the first "zicht wrote: ↑Friday 31 August 2018 22:35 SOLVED :I added the " and it worked, thanks for ehm inspiring me to test a bit moreCode: Select all
commando='curl "http://192.168.xxx.xxx:8080/json.htm?type=command¶m=getlog"'
Users browsing this forum: No registered users and 1 guest