In PHP, for downloading a file to the user, the following code is used (for sending the headers and the binary file-data):
header("Pragma: ");
header("Cache-Control: ");
header("Content-type: " . $contentType);
header("Content-Disposition: attachment; filename=\"". Util::GetLegalWindowsFilename($row["filename"]) ."\"");
header("Content-length: $size");
echo $row["data"];
Yesterday this worked, today it returns a:
FastCGI Error
The FastCGI Handler was unable to process the request. Error Details:HTTP Error 500 - Server Error.
- Error Number: 13 (0x8007000d).
- Error Description: The data is invalid.
Internet Information Services (IIS)
After removing the first two headers, it worked again (those two headers are used to prevent IE from caching the content).
Did anything change overnight (i.e. the FastCGI handler)?


Reply With Quote

Bookmarks