Lua-cURLv3 icon indicating copy to clipboard operation
Lua-cURLv3 copied to clipboard

Support CURLOPT_ERRORBUFFER

Open moteus opened this issue 6 years ago • 0 comments

Problems to solve

  1. Where and when allocate error buffer. Options
  • part of lcurl_easy_t structure
  • full userdata and store ref/ptr to it internally
  • new separate object lcurl_error_buffer_t and provide Lua API for it.
  1. How to assign this option from Lua code (set to 0/1/true/false/nil/null)
  2. Does it make sence allows to increase buffer size over than CURL_ERROR_SIZE? From the doc The buffer must be at least CURL_ERROR_SIZE bytes big.
  3. Provide API for error object to access to information from associated buffer.

moteus avatar Apr 08 '19 18:04 moteus