Skip to main content

Name

c:perform — Perform the file transfer

Synopsis

require('curl');

c:perform();

Description

After all setopt calls have been made, perform a file transfer.

c = curl.new();
c:setopt(curl.OPT_URL, "http://example.com/index.php");
c:setopt(curl.OPT_WRITEFUNCTION, function(userdata, datastring) print(datastring); »
  return string.len(datastring); end);
c:perform();

See Also

See c:setopt for an explanation of the parameters passed to setopt.

Was this page helpful?