easy:SetOpt_Chunk_BGN_Function(chunk_bgn_callback[, userdata])
The callback will receive two parameters: The first parameter will be a table initialized as follows:
Filename:Filetype:Time:Perm:UID:GID:Size:HardLinks:Flags:Strings:
Time:Perm:User:Group:Target:The second parameter contains number of chunks remaining per the transfer. If the feature is not available, the parameter has zero value.
If you pass the optional userdata argument, the value you pass in userdata will be passed to
your callback function as a third parameter. The userdata parameter can be of any type.
This callback makes sense only when using the #CURLOPT_WILDCARDMATCH
option for now.
Return #CURL_CHUNK_BGN_FUNC_OK if everything is fine,
#CURL_CHUNK_BGN_FUNC_SKIP if you want to skip the concrete chunk or
#CURL_CHUNK_BGN_FUNC_FAIL to tell libcurl to stop if some error occurred.