wugmump

extswitch.minecraft

May 7th, 2013
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1. http.request("http://goldbergs.com/minecraft/extswitch/bit.txt")
  2.  local requesting = true
  3.  while requesting do
  4.    local event, url, sourceText = os.pullEvent()
  5.    if event == "http_success" then
  6.      local respondedText = sourceText.readAll()
  7.      print(respondedText)
  8.      requesting = false
  9.    elseif event == "http_failure" then
  10.      print("Server didn't respond.")
  11.      requesting = false
  12.    end
  13.  end
Advertisement
Add Comment
Please, Sign In to add comment