lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


philippe bulens wrote:

> c:setopt(curl.OPT_WRITEFUNCTION,
>   function(userparam, buffer) f:write(buffer) end)

Your callback function should return the number
of bytes it handled, e.g.

c:setopt(curl.OPT_WRITEFUNCTION,
  function(userparam, buffer) f:write(buffer); return #buffer end)

- Jeff