xXm0dzXx

Untitled

Jun 6th, 2012
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. function connect()
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. http.request("http://computercraft.info/programs/mim")
  5. local event, url, response = os.pullEvent()
  6. if event == "http_success" then
  7. _sResponse = { response.readAll() }
  8. test = fs.open("MiM", "w")
  9. test.write(_sResponse)
  10. test.close()
  11. end
  12.  
  13. response.close()
  14. end
  15. connect()
Advertisement
Add Comment
Please, Sign In to add comment