Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getTimestamp()
- http.request('http://neogriever.atwebpages.com/time.php')
- local requesting = true
- while requesting do
- local event, url, sourceText = os.pullEvent()
- if event == 'http_success'then
- local responseText = sourceText.readAll()
- sourceText.close()
- print(responseText)
- requesting = false
- elseif event == 'http_failure' then
- print('fehlschlag')
- requesting = false
- end
- end
- end
Add Comment
Please, Sign In to add comment