Advertisement
Guest User

Express Local Test

a guest
Nov 16th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. -- Tests for connectivity to Express Dev Server
  2. -- Config --
  3. ep_address = "192.168.1.12"
  4. ep_port = "3000"
  5.  
  6. -- Program Start --
  7.  
  8. -- Main Execution Function --
  9. function main()
  10.     -- Make request
  11.     response = http.get("http://"..ep_address..":"..ep_port)
  12.     --Print request
  13.     print(response.readAll())
  14. end function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement