Results 1 to 5 of 5

Thread: FastCGI Handler error

  1. #1
    Join Date
    Jun 2005
    Posts
    270
    Thanks
    12
    Thanked 11 Times in 9 Posts

    Default FastCGI Handler error

    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:
    • Error Number: 13 (0x8007000d).
    • Error Description: The data is invalid.
    HTTP Error 500 - Server Error.
    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)?

  2. #2
    Join Date
    May 2005
    Location
    Bexleyheath, Kent
    Posts
    94
    Thanks
    1
    Thanked 1 Time in 1 Post

    Default

    I have the same problem on sites running php which were fine yesterday and now they have stopped working with the same message.

    they are using moodle and cubecart

  3. #3
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Is this problem still occuring for you?

    EDIT: I am looking into this; it seems that using the header() function to send empty headers is not a good idea.

    EDIT: Problem fixed
    Last edited by Warren Ashcroft; 11th October 2007 at 07:05 AM.
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

  4. #4
    Join Date
    Jun 2005
    Posts
    270
    Thanks
    12
    Thanked 11 Times in 9 Posts

    Default

    Quote Originally Posted by Warren Ashcroft View Post
    EDIT: Problem fixed
    What was it? I would like to inform my customer.

    Thanks!

  5. #5
    Join Date
    Feb 2004
    Posts
    4,903
    Thanks
    2
    Thanked 134 Times in 113 Posts

    Default

    Quote Originally Posted by Jaro View Post
    What was it? I would like to inform my customer.
    An oversight in Microsoft's latest version of the handler - they fixed it within 24 hours. The handler didn't allow blank headers; but PHP always did (although it shouldn't).
    Warren Ashcroft
    Red Fox UK Limited - Pioneers in Internet Technology
    http://www.redfoxuk.com
    w.ashcroft [at] redfoxuk.com

    NOTE: Forum Private Messaging should not be used to contact staff with support queries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 2nd December 2005, 04:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •