Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.363 kB
-- simple "On the fly" fileupload
local cURL = require("cURL")
c=cURL.easy_init()
c:setopt_url("ftp://ftptest:secret0815@targethost/file.dat")
c:setopt_upload(1)
count=0
c:perform({readfunction=function(n)
count = count + 1
if (count < 10) then
return "Line " .. count .. "\n"
end
return nil
end})
print("Fileupload done")
Jump to Line
Something went wrong with that request. Please try again.