M
M
Megas2012-08-07 12:36:15
Internet Explorer
Megas, 2012-08-07 12:36:15

Feature of working with HTTPS in IE8 and below?

Hello

, I've run into a problem.
There is a script that generates a report in CSV format (but that's not the point), and then gives the user a download. To be more precise, the script immediately starts dumping data for output even while reading from the database, without saving it in memory, since the report can take many megabytes.

Headers that are set at the beginning of the script:

Content-type: text/csv; charset=utf8; header=present<br>
Content-disposition: attachment; filename=report.csv<br>

I will say in advance that the feature of the script does not allow to calculate the full amount of final data in advance and therefore the Content-Length header is not set.

Sample script structure:
$res = $db->query($sql);<br>
while ($data = $res->fetchRow())<br>
     echo $data;<br>


At first everything worked fine in all browsers, but recently I ported this script to a secure page (HTTPS), after which it stopped working in IE8 and below browsers for large reports (which take several minutes to download). Those. in all browsers, even in IE9+, the script immediately starts downloading the report, but in IE8- it waits for something for a long time (presumably it expects to get the whole file at once, and then display the save dialog), and then after a minute of thought it says that the connection is interrupted. I remind you that with normal HTTP there was no such problem.

Nobody faced something similar?
How to cure it?

PS This symptom is observed both in normal mode and in compatibility mode.
PPS Cipher strength 256 bit

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Shamin, 2012-10-02
@dyadyavasya

Microsoft is aware of this issue. Offers to edit the registry on the user's computer: support.microsoft.com/kb/323308

T
theaspin, 2012-08-07
@theaspin

And why not do it in 2 passes - first we count the length of the data, then we give the finished CSV? It will be slower, but the memory will not end.

E
ertaquo, 2012-08-08
@ertaquo

Try using a cipher of 128 bits. IE8 has some issues with 256.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question