Advertisement
Reactor_Games

HttpServerOpencomputer

Feb 4th, 2021 (edited)
825
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.30 KB | None | 0 0
  1. local internet = require("internet")
  2. local handle = internet.open("194.58.121.181", 8000)
  3.  
  4. local response = internet.request("http://194.58.121.181:8000/?test=5")
  5.  
  6. for chunk in response do
  7.   io.write(chunk)
  8.   print("\n")
  9.   if chunk == "Hello client" then
  10.     print("Hi server")
  11.     end
  12. end
  13.  
  14. print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement