protected static function sendToBrowser($filename, $extension, $contentType, $content)
{
$filename = ReportRenderer::makeFilenameWithExtension($filename, $extension);
ProxyHttp::overrideCacheControlHeaders();
Common::sendHeader('Content-Description: File Transfer');
Common::sendHeader('Content-Type: ' . $contentType);
Common::sendHeader('Content-Disposition: attachment; filename="' . str_replace('"', '\'', basename($filename)) . '";');
Common::sendHeader('Content-Length: ' . strlen($content));
echo $content;
}