I have a force download (send.php) page which gets the variables by _POST_VARS and then sends the headers:
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$echofile");
readfile($filename);
exit;
where $filename is the full file name with path and $echofile is the save filename in the save dialog.
It is working perfectly when I use http and it doesn't work in any way when I configure my site as https. I've tried copying the files under my document root, I also added the file size as a header and so on...
The page always tries to save "send.php" and then gives an error like "no such file, could not get file" when I try to download from https.
I will be very happy if someone could say me why this happens.
Thanks in advance.