[Tutor] py cgi can't show up correctly in Netscape
Rick Pasotto
rick at niof.net
Thu Apr 22 23:38:24 EDT 2004
On Thu, Apr 22, 2004 at 10:22:58PM -0500, pan at uchicago.edu wrote:
> Hi all,
>
> I have some cgi scripts having some problems with Netscape:
>
> -- If the py cgi called by MSIE, it works fine;
> -- If called by Opera, it works fine;
> -- If called by Netscape, it displays the cgi output code (the html tags),
> in plain text, but not html-formatted. For example, <body> will be shown
> on the Netscape.
> -- If I save the output document (view source in Netscape) into a ???.html
> file and re-open it with Netscape, it shows up with html-formatted text
> correctly.
>
> I tried Netscape 4.79 and 7.1, on both Window and Linux, both have the
> same problem.
>
> Does anyone know what's wrong and how to solve it ?
>
> You can test it by clicking:
> http://runsun.info/cgi-bin/cgiTest.py
You're not outputting any <html></html> nor <head></head> sections so
the document you send to the browser is invalid. Some browsers overlook
some html errors and make guesses and some just get confused.
--
"FIJA is not a double-edged sword -- it is a shield against the sword of
government." -- Tom Glass
Rick Pasotto rick at niof.net http://www.niof.net
More information about the Tutor
mailing list