Moved the CURLOPT_PROGRESSFUNCTION function out from inline since
it was failing on my FAN Nagios box.