开发者

Can I send a URL request in OpenWRT using Lua?

开发者 https://www.devze.com 2023-03-17 06:33 出处:网络
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.22

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

精彩评论

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

关注公众号