Can I send a URL request in OpenWRT using Lua?
I want to initiate a php program on my web server from OpenWRT running on a Linksys router. How can I do this? I don't have 开发者_开发技巧room to install elinks.
use busybox wget http://192.168.42.220/index.html
Using Luasocket you can fetch a webpage (and thus triggering your php page) with socket.http.request(url).
That is, if you have luasocket on your OpenWRT.
精彩评论