I am having a very difficult time getting an export of an Excel file to work in a HTTPS/SSL environment. When I run the script in regular HTTP non-SSL environment it works fine.
What are the proper HEADERS I need to use when downloading an Excel file in a SSL website?
I've tried all kinds of headers based on similar issues I found on web searches, but nothing works.
I am using IE 7 with PHP5.2 Apache
$sessvar = $_GET['sessvar'];
$htmltab = $_SESSION[$sessvar];
$filename = "export.xls";
header('Cache-control: private, must-revalidate');
header("Content-Disposition: attachment; filename=$filename");
header("Keep-Alive: timeout=15, max=100");