Kamioda

turtle_httprequest_test

May 14th, 2021 (edited)
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.15 KB | None | 0 0
  1. local file = http.get("http://localhost:3000/")
  2. if file ~= nil then
  3.   print(file.readAll())
  4.   file.close()
  5. else
  6.   print("Server didn't respond.")
  7. end
Add Comment
Please, Sign In to add comment