· 6 years ago · Nov 16, 2018, 07:16 PM
1-- Tests for connectivity to Express Dev Server
2-- Config --
3ep_address = "192.168.1.12"
4ep_port = "3000"
5
6-- Main Execution Function --
7function main()
8 -- Make request
9 response = http.get("http://"..ep_address..":"..ep_port)
10 --Print request
11 -- print(response.readAll())
12 for k,v in pairs(response) do
13 print("Key: "..k.."| Val: "..v)
14 end
15end
16
17-- Program Start --
18main()