curl https://kat.cr/usearch/ubuntu%20iso/?rss=1 > out.html

curl --compressed https://kat.cr/usearch/ubuntu%20iso/?rss=1 > out.html

$data = @file_get_contents($url, false, $context, -1, 4000000); // We download at most 4 Mb from source.
if (isset($http_response_header[0])) {
	// detect gzip data
	foreach($http_response_header as $i => $h) {
		// if gzip : decode it
		if(stristr($h, 'content-encoding') and stristr($h, 'gzip')) {
			$data = gzinflate( substr($data,10,-8) );
		}
	}
}
return $data;

curl_setopt($handlers[$i], CURLOPT_ENCODING, "gzip");