Hi
ok, I have to create a JSON request. this one is working:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"jsonrpc":"1.0","method": "login",
"params": {"username":"root", "password":"x"}, "id":0}' http://192.168.1.1/cgi-bin/luci/rpc/auth
Will look into more. then report back.
Xiangfu
On 05/14/2012 10:10 AM, Xiangfu Liu wrote:
Thanks Mirko
Since I don't have much experience on json-rpc. can you give me some example?
I have tried
curl http://192.168.1.1/cgi-bin/luci/rpc/net/devices
it give me nothing.
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel