Added support for CURLOPT_XFERINFOFUNCTION and CURLOPT_PROGRESSDATA