« Previous Next »

Thread: Weird problem using FCGI on IIS with POST

Last post 07-02-2009 5:23 AM by wdi. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 06-24-2009, 1:59 PM

    • wdi
    • Not Ranked
    • Joined on 06-24-2009, 1:45 PM
    • Posts 2

    Weird problem using FCGI on IIS with POST

    I am running IIS5.1.1 with the fcgi module (latest fcgisetup32.msi) on XP.

     Most of the features of my application (ported from Linux/Apache) work without problems - that is, everything which gets exchanged with the FCGI script via the GET method.

    But when POST-ing, I get a "404 3" status code in the IIS log, and no output. Furthermore, it seems that the fcgi script is not even called for these POST events, so this does not look like an output problem of the FCGI - it seems to get stuck in IIS, where the request was received by the browser, but not sent on to the FCGI app.

    I read about the MIME type mappings, but could not find any configuration which would fix this. In any case, the FCGI script always returns proper explicity MIME type info in the returned headers. The app directory is configured to allow script execution etc. (after all, the GET path is exactly the same as the POST path), and adding any type for ".fcgi" did not make a difference.

    This is the fcgiext.ini:

    [Types]
    fcgi=Sketcher
    [Sketcher]
    ExePath=C:\Inetpub\wwwroot\edit\csweb.exe
    Arguments=-f C:\Inetpub\wwwroot\edit\editsrv.fcgi
    ActivityTimeout=10
    InstanceMaxRequests=10000
    StderrMode=IgnoreAndReturn200
    MonitorChangesTo=C:\Inetpub\wwwroot\edit\editsrv.fcgi

     

    Here is some log data (the GET worked OK, the POST not)

    #Software: Microsoft Internet Information Services 5.1
    #Version: 1.0
    #Date: 2009-06-24 17:39:30
    #Fields: time c-ip cs-method cs-uri-stem cs-uri-query sc-status sc-win32-status sc-bytes cs-bytes
    17:39:32 192.168.1.127 GET /edit/editsrv.fcgi drawevent=smiles&sessionid=1245861545312&key_cur=f83acb43-ef91-4ef0-9a32-da53b25e9e1c&key_bck=966ee34c-bc3a-413d-9697-681f208db776&style=smiles&cnt=141 200 0 1883 927
    17:39:33 192.168.1.127 POST /edit/editsrv.fcgi - 404 3 4315 3342

     

    Any ideas?

     

  • 06-30-2009, 6:49 AM In reply to

    Re: Weird problem using FCGI on IIS with POST

    Hi,

    Please check if the post verb is allowed for this application extension mapping. Select the Home directory tab in the site’s properties window-> Click the configuration button->Edit the .fcgi extension mapping->Check the Verbs setting.

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • 07-02-2009, 5:23 AM In reply to

    • wdi
    • Not Ranked
    • Joined on 06-24-2009, 1:45 PM
    • Posts 2

    Re: Weird problem using FCGI on IIS with POST

    No, this is not the problem. The verb setting is the usual "limit to:"

     GET,POST,HEAD

     

    (copy/paste from config panel, so no typos) setting.

     

Page 1 of 1 (3 items)
Microsoft Communities