curl_gzipchk function