I am looking for an example of IP/ webserver to execute CGI script. I downloaded example for windows.
I changed definition for WEBS_Application to accept additional argument for virtual files.
Also added definition for virtual files
Then in WebServer_Win32.c I added definition for Send handler and updated application
With this when I call localhost:8080/Send.cgi?FirstName=Sriharsha&LastName=Vardhan , I am getting
Not Found
The requested document was not found on this server.
Can you please guide me on where I am going wrong?
I changed definition for WEBS_Application to accept additional argument for virtual files.
Also added definition for virtual files
Then in WebServer_Win32.c I added definition for Send handler and updated application
C Source Code
- static void _callback_SendCGI(WEBS_OUTPUT * pOutput, const char * sParameters) {..Removed for brevity..}
- static const WEBS_VFILES _aVFiles[] = { {"Send.cgi", _callback_SendCGI }, NULL};
- static const WEBS_APPLICATION _Application = { &_aCGI[0], &_aAccessControl[0], _CB_HandleParameter, &_aVFiles[0]};
With this when I call localhost:8080/Send.cgi?FirstName=Sriharsha&LastName=Vardhan , I am getting
Not Found
The requested document was not found on this server.
Can you please guide me on where I am going wrong?