Alexey Melnichuk b2e6bcae4e Fix. add_handle/remove_handle on cURLv3
Add. Examples for cURLv3
2014-09-11 12:50:48 +05:00

16 lines
221 B
Lua

local cURL = require "cURL"
-- open output file
f = io.open("example_homepage", "w")
cURL.easy{
url = "http://www.example.com/",
writefunction = f
}
:perform()
:close()
-- close output file
f:close()
print("Done")