Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http.request("http://pastebin.com/raw.php?i=t7V3nCS7")
- local requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == "http_success" then
- local respondedText = sourceText.readAll()
- print(respondedText)
- requesting = false
- elseif event == "http_failure" then
- print("Server didn't respond.")
- requesting = false
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment