Ok, I'm kind of new to CGI, and am having some trouble getting started, not because of any difficulty with the CGI programming itself, but because of my server.
I have a server running NT 4.0 Server SP 3 and IIS 3... Anyway, here is the problem, and what I've tried so far.
I created and compiled a very simple program in C. It does nothing more than display an html header and a single string. Just a simple test program basically.
I created a cgi-bin directory under the default wwwroot directory of the server, and granted Read/Execute permission to everyone. I then created a simple HTML file as follows:
begin file -------
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="GENERATOR" CONTENT="Mozilla/4.04 [en] (WinNT; I) [Netscape]">
<TITLE>My CGI Test Bed</TITLE>
My CGI Test Bed</H1>
<FORM METHOD="POST" ACTION="/cgi-bin/test.exe?test=0">Press <INPUT TYPE="submit" VALUE="Here">
to run the program. </FORM>
end file ----------
I placed this html file in the same directory as my personal web page, because I know that directory works...
When I access this file, it comes up fine, and displays the button as it should. However, when I press the button that SHOULD call the cgi program immediately, the server requests a username and password. Nothing works, I've even tried the Administrator password, it doesn't care. The permissions on the directory are set to RX for everyone and IIS has permissions set the same. If I move the cgi program to my personal directory, where the .html file is also stored, I have the same problem. It wants a login. Does anyone know what I need to change to get IIS to execute this program properly? Do I need to change the .exe extension to something else, or what?