Unable to execute CGI app
From: D. Hernandez (dhernandez_at_teleline.es)
Date: 10/10/04
- Next message: Peter Jones: "Re: How to install IIS on WinXP SP2?"
- Previous message: M. M. Rafferty: "Re: IIS6 caching"
- Next in thread: David Wang [Msft]: "Re: Unable to execute CGI app"
- Reply: David Wang [Msft]: "Re: Unable to execute CGI app"
- Messages sorted by: [ date ] [ thread ]
Date: 10 Oct 2004 11:48:52 -0700
Hi,
I have a very simple CGI .EXE application written in Delphi that
retrieves POSTed data and inserts it into a SQL Server table. When I
deploy it to a Win2003 Server (IIS 6.0) I receive 405 error - method
not allowed (invalid HTTP verb). If I use GET instead of POST
everything works fine. The most curious thing is that when I use POST
the app executes too (the record gets inserted into the database), but
the browser displays the 405 error message.
I've followed Microsoft David Wang's suggestions I've read in this
forum, but anyway the 405 continues to appear:
**********************************************************
Since CGI EXE and ISAPI DLL are intrinsically executable by IIS, they
do not
need Application Configuration. Application configuration is only
used for
scripts (i.e. ASP pages are not executable -- it is script code that
needs
to be compiled/interpreted by something else to generate a response).
All you need to configure:
1. /cgi-bin needs to have "Scripts and Executables" permission --
this
tells IIS to allow .EXE to be accessed as an executable instead of a
static
file
2. Full-Path-To-cgimail.exe needs to be added to Web Service Extension
and
enabled -- this allows IIS to allow that .EXE to actually execute in
memory.
No need to configure anything else to execute a CGI on the server.
**********************************************************
Anybody could please give me further ideas...
Best regards,
David Hernandez
- Next message: Peter Jones: "Re: How to install IIS on WinXP SP2?"
- Previous message: M. M. Rafferty: "Re: IIS6 caching"
- Next in thread: David Wang [Msft]: "Re: Unable to execute CGI app"
- Reply: David Wang [Msft]: "Re: Unable to execute CGI app"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|