Re: mod_perl running code but output displays HTML code not HTML !!!!

[prev] [thread] [next] [Date index for 2005/02/24]

From: Ofer Nave
Subject: Re: mod_perl running code but output displays HTML code not HTML !!!!
Date: 02:04 on 24 Feb 2005
First, I'm not sure if headers are case sensitive or not (8 years of web 
dev and somehow it never came up), but you might want to try changed 
"Content-type" to "Content-Type"
Second, make sure you have an empty line between your headers and the 
start of your html document.

-ofer

Phil's Yahoo wrote:

> hey
> when i run a script that i have made that the output should be in HTML 
> so that it is a webpage, mod_perl
> runs because i can see the output but this is then not wrote as HTML 
> rather as plain text.
> i have sent the Content-Type: text/html and this is show aswell as the 
> compleate HTML code.
> eg.
> my script shows links but instead of showing a HTML link it shows <a 
> href="somewhere.pl">this link</a>
> and not the link.
> this first few lines of the output screen i have shown...............
> START OF OUPUT
> HTTP/1.1 200 OK
> Date: Thu, 24 Feb 2005 01:33:47 GMT
> Content-type: text/html
> <html>
> <head>
> END OF OUTPUT
> any help would be of help
> i have found "PerlSendHeaders On" in my apache conf file is this 
> anything to do with it???
> anyhelp would be very usefull
> Phil


Re: mod_perl running code but output displays HTML code not HTML !!!!
Ofer Nave 02:04 on 24 Feb 2005

Generated at 14:00 on 25 Feb 2005 by mariachi v0.52