开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜