CURL bind and wrapper for Lua+FFI