Too many newsgroups in OP? Followup set to c.l.p.m.
One a computer I use when a cgi script is called on,
instead of getting the web page I get the html code
as text. Can anyone tell me what settings to change
to fix this?
Since you give no information, I'll make some rash assumptions ...
* You have some control over this CGI script.
* It is written in Perl (surely not Perl6 though!)
* The symptoms are the same in several browsers (IE6, Mozilla, etc)
In which case, it seems to me that it is possible the CGI script is not
emitting the correct HTTP header. ("Content-Type: text/html").
You can check this by any of the following methods
* Use a network sniffer (e.g. Ethereal).
* Use wget -S
http://whatever/cgi/script to view the headers.
* Use "telnet whatever 80" and issue the HTTP GET command yourself.
* Select "View","Page Info" in Mozilla to see the Content-Type.
Since I don't know which modules are used by the CGI script (you don't
provide any example code), I can't suggest how you should fix this.
In the dark ages of Perl, we used to write headers thus:
print "Content-Type: text/html\n\n";
But nowadays you should be using CGI modules.
Maybe you have a typo?
Maybe you haven't studied the documentation for the module?
Probably off topic sorry.
See "Posting Guidelines for comp.lang.perl.misc" posted to this
newsgroup regularly.
Also, I think you'll find it helpful to read
http://www.catb.org/~esr/faqs/smart-questions.html
I'd try posting a smarter question