Hi

By remove the line 38,39 of 
http://luci.subsignal.org/trac/browser/luci/trunk/modules/rpc/luasrc/controller/rpc.lua
I can call those exported libraries. but how to set this "params". from the lua 
code, it has to be 'table'.

curl -v -H "Accept: application/json"
        -H "Content-type: application/json"
        -X POST
        -d '{"jsonrpc":"1.0","method": "dir", "params":{"params":"/etc/"}, 
"id":0}'
     http://192.168.42.1/cgi-bin/luci/rpc/fs

This give me the content of /www not /etc

Xiangfu

On 05/29/2012 10:04 PM, Xiangfu Liu wrote:
Hi

My problem is after 'curl_easy_perform' , the connection always close.
The output like: http://pastebin.com/U5Yyx5Mn
Why the connection always close after each 'curl_easy_perform'

the 192.168.42.1 is OpenWrt with luci-mod-rpc installed

Is the problem on my code? (code is here: http://pastebin.com/3LE6dK6R)

Thanks
Xiangfu

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to