curl.new — Create a cURL object
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();