Http.content readonly property
The Http.content property gets a string
, representing the current content of the response server from the last HTTP request.
Example
local net = require "net"
local client = net.Http("http://download.thinkbroadband.com")
local task = client:download("/10MB.zip")
local last = 0
while not task.terminated do
sleep()
local size = #client.content
if size > 0 then
print(((size-last) or size).." new bytes received")
last = size
end
end