/openwrt-cgirpc

Remote config interface for OpenWrt, via cgi by json.

Primary LanguageShellGNU General Public License v3.0GPL-3.0

cgi-rpc

This is the remote config interface for OpenWrt, via http protocol, transacted by cgi, formatted in json. Please refer to api.txt for more about the api. All parameters can be passed either via GET or POST methods.

To make ipk package, clone this repository to package directory under the openwrt build root or sdk, then type

make V=s package/cgi-rpc/compile

Api query example:

QUERY='{"login":"devboard","method":"get","target":"wan"}'
curl -d "rpc=$QUERY" http://192.168.10.1/cgi-bin/cgi-rpc

or

QUERY='{"login":"devboard","method":"get","target":"wan"}'
curl http://192.168.10.1/cgi-bin/cgi-rpc?$QUERY