Kamioda

turtle_httprequest_test

May 14th, 2021 (edited)
254
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data