I've read several posts about IE5 and header issues for http (which isn't my issue), but nothing that had a fix for header issues related to https.
I'm storing the file name and locaton in a DB and then retrive it via the link to the download page, on the download page I'm using the following headers to send the file. This works great in http, but when I take it over to https IE5 chokes on it with a generic error. (works in Netscape 4 & 6).
Does anyone know what's going on here, is this a server https configuration problem, or do the headers need to change for https & IE5? Thanks!
<code>
$path = $file_location . $file_name;
//force download dialog
header("Content-type: application/octet-stream\n");
header("Content-disposition: attachment; filename=\"$file_name\"\n");
header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($path) . "\n");
//send file contents
$fp=fopen($path, "r");
fpassthru($fp);
</code>