How do I:
- Get the source of a website with lua? I have tried this but it does not seem to load the socket module:
client = socket.connect(“localhost”, 80)
client:send(“GET /test.php?” … query … " HTTP/1.0
Response = receive(’*line’)
- Trigger a function on the client side of the scripting from the server side (I have a command which will open a GUI for the client but need to trigger it from the server init.lua file).