if (version_compare(SimplePie_Misc::
get_curl_version(), '7.10.5', '>='
)) { curl_setopt($fp, CURLOPT_ENCODING, ''
);
} curl_setopt($fp, CURLOPT_URL,
$url);
curl_setopt($fp, CURLOPT_HEADER, 1
);
curl_setopt($fp, CURLOPT_RETURNTRANSFER, 1
);
curl_setopt($fp, CURLOPT_FAILONERROR, 1
);
curl_setopt($fp, CURLOPT_TIMEOUT,
$timeout);
curl_setopt($fp, CURLOPT_CONNECTTIMEOUT,
$timeout);
curl_setopt($fp, CURLOPT_REFERER, SimplePie_Misc::
url_remove_credentials($url));
curl_setopt($fp, CURLOPT_USERAGENT,
$useragent);
curl_setopt($fp, CURLOPT_HTTPHEADER,
$headers2);
foreach ($curl_options as $curl_param =>
$curl_value) { curl_setopt($fp,
$curl_param,
$curl_value);
} $this->headers =
curl_exec($fp);
if (curl_errno($fp) === 23 ||
curl_errno($fp) === 61
) { curl_setopt($fp, CURLOPT_ENCODING, 'none'
);
$this->headers =
curl_exec($fp);
}