Monthly Archives: April 2012

php generated file https downloaded from ie pop up an error dialog

When php generates a file to download from ie in a https connection, by default it will pop up an error dialog box saying:

unable to open this internet site. the requested site is either unavailable or cannot be found. please try again later.

This is pretty confusing if you suddenly run into this case while it’s totally fine in firefox, and with no problem download from http both in ie & firefox.
To fix the problem, simple add this line of code to your php script:

header("Pragma: ");

Thanks Mark point this out here.