BasiliskEngine / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

index.cgi is not treated as cgi file #33

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a default page index.cgi in the current mongoose directory with
the content.

#!c:\strawberry\perl\bin\perl
use CGI;
my $cgi = new CGI;
print $cgi->header();
print "Hello World\n";

2. Call the page in the browser without mentioning index.cgi(for eg
http://localhost:8080/). since index.cgi is the default page index.cgi file
should be executed and the output should be printed on the screen.

3. Do not create other default pages like index.html or index.htm

What is the expected output? What do you see instead?
 "Hello world" should be printed on the screen. But it prints the content
of the file as it is. Instead of treating index.cgi as cgi file it treats
it as a text file. 

What version of the product are you using? On what operating system?
 2.3 on windows

Please provide any additional information below.
  Mongoose is not treating index.cgi as a cgi file when it is the default page.

  But works as expected when we call explicitly mentioning index.cgi in the
browser like http://localhost:8080/index.cgi

Original issue reported on code.google.com by vargh...@gmail.com on 14 Apr 2009 at 12:44

GoogleCodeExporter commented 8 years ago
This has been fixed, please update to the newer version.

Original comment by valenok on 29 Apr 2009 at 2:44