View Full Version : Unable to run CGI in Firefox

09-19-2005, 01:07 PM
Hello everybody,

I am using Win XP SP2 and I have written a small program using Perl/CGI.
Everything is working fine in Internet Explorer, but the problem comes in Firefox.

When I tried in Firefox, it is not parsing the .cgi file, instead it is showing a dialog box, asking me to open or save it.

I have attached the screen shot for this error.

Do anyone has this problem ? Can anyone provide me some ways of getting rid pf this ?

Thanks in Advance

09-19-2005, 01:59 PM
Nothing to do with Firefox, really, except that MSIE guesses right on the mime type and content type and Firefox requires the server actually do it right.
CGI runs on the server, not in the browser.

Your server is not sending the correct mime type and content type for cgi files.

09-19-2005, 02:40 PM
It worked...:)
Thank you nikkiH....

I included the statement

print "Content-type:text/html\n\n";

After this when I tried in Firefox, it displayed the page correctly...