Use CURLOPT_PROGRESSFUNCTION rather than CURLOPT_XFERINFOFUNCTION, because the latter is not available on the version of libcurl on the lab machines.