Posted 24 March 2013 - 10:05 AM
Solved and in wrong section! Go help someone else! ^_^/>
local response = http.get("https://raw.github.com/SuicidalSTDz/EnderOS/master/config")
if response then
local contents = response.readAll()
response.close()
print(contents)
end
local response = http.get("https://raw.github.com/SuicidalSTDz/EnderOS/master/config")
local sResponse = response.readAll()
response.close()
print(sResponse)
It's actually the same code, just that I checked if there was a response. You should make that check, the request may fail and the response would be nil, making the program error.Just figured that out :P/>
Mine is more compactlocal response = http.get("https://raw.github.com/SuicidalSTDz/EnderOS/master/config") local sResponse = response.readAll() response.close() print(sResponse)
Creative buggart aren't ye?I've sailed ye topic to the correct port. Silly captains and their vessels…