Re: problem to download attachments in https mode !!
| From: | 1LT John W. Holmes | Date: | Tue, 22 Oct 2002 11:40:24 +0000 |
| Subject: | Re: problem to download attachments in https mode !! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120877@lists.php.net to get a copy of this message | ||
> Hello!
> If I want to download a file I send headers:
> header("Content-type: application/octet-stream");
> header("Content-Disposition: attachment; filename=\"$filename\"");
> and below I flush the file content.
>
> It is fine in http mode.
> Problem appears if I want to download in https mode (SSL).
> Error occurs:
> "Internet Explorer can not download .... Internet Explorer can
> not open the internet page".
>
> I checked off option "Do not download encrypted pages" but it does not
help.
> I know pages where I can download attachments in https mode so it is
possible.
> One sulution is to download in http mode but it can not be done in my
situation.
>
> If someone knows solution please help.
I just went through this problem myself. It's an IE bug that chokes on a
nocache header that's sent when you start a session. I'm assuming you've got
a session started, that was my problem. The solution is to change the
session.cache_limiter (??) to none or maybe nostore in php.ini.
---John Holmes...