Skip to main content

Name

curl.new — Create a cURL object

Synopsis

require('curl');

curl.new();

Description

Create a new curl object. The curl object serves as the main point of context for managing a session. You must create an object to be able to use any of the networking operations of the cURL library.

c = curl.new();
c:setopt(curl.OPT_URL, "http://example.com/path");
c:perform();

See Also

Was this page helpful?