curl_getinfo($ch, CURLINFO_SIZE_DOWNLOAD) instead of strlen()