After reading many messages on the forum about problems related to IE5/5.5/5.5SP1 download attachments (especially when using HTTPS!), I finally found some interesting things.
Seems to work with IE5.5 HTTP/HTTPS.
First, to check if you have a MSIE5.5 as client, you can do a:
if (strstr($HTTP_SERVER_VARS["HTTP_USER_AGENT"],"MSIE 5.5"))
to ensure that you won't to the tricks with netscape
The, follow the rules:
Do not use "Content-Disposition" header with IE5.5, it is BROKEN
Use "Content-Type: application/octet-stream" header
Use "Connection: close" header
Use "Content-Transfer-Encoding: binary" header
IF using session_start(), after the
session_start();
session_register("foo");
You MUST do a:
Header("Expires:");
Header("Cache-Control:");
Header("Pragma:");
To clear these fields, set by PHP!
Else, you'll get error when downloading in HTTPS (!)
Hope it'll help people!