31.08.2015, 06:12
You can use LuaSocket to do HTTP requests:
http://w3.impa.br/~diego/software/luasoc...ml#request
Your code should look like this (replace 1.2.3.4 with your Synology device IP):
http://w3.impa.br/~diego/software/luasoc...ml#request
Your code should look like this (replace 1.2.3.4 with your Synology device IP):
Code:
require('socket.http')
socket.http.TIMEOUT = 5
data = socket.http.request('http://1.2.3.4/webapi/entry.cgi?mailEnable=1')