Improved cURL download validation