"ecropolan" <warren@ecropolis.com> said:
>Perhaps someone will understand what is happening here. I've been
>trying to configure perl and apache on a redhat8 server with virtual
>hosts. Perl works well on the system and is executing cgi-bin scripts
>as well, but the output HTML is not being rendered by the browser on my
>scripts. I know you're thinking, you're not sending the headers dummy!
That'd be the first guess.
>But please just take a look: http://www.realtordb.com/cgi-bin/hello2.pl .
Ok... testing:
~$ GET -sSeuU
http://www.realtordb.com/cgi-bin/hello2.pl
GET
http://www.realtordb.com/cgi-bin/hello2.pl
User-Agent: lwp-request/2.01
GET
http://www.realtordb.com/cgi-bin/hello2.pl --> 200 Assumed OK
Client-Date: Sun, 27 Mar 2005 06:08:14 GMT
Client-Response-Num: 1
Content-Type: text/html
<html> <head>
<title>Hello, world!</title></head>
<body>
<h1>Hello, world!</h1>
</body> </html>
.... now, that is interesting. Something is creating an extra newline
after the server-generated headers, before the 'Content-Type'. I don't
see anything in your program that would cause this behaviour, so it
would look like it is something caused by your server set up.
>The script is your basic html output.
>#!/usr/local/bin/perl
># hello.cgi - My first CGI program
>print "Content-Type: text/html\n\n";
>print "<html> <head>\n";
>print "<title>Hello, world!</title>";
>print "</head>\n";
>print "<body>\n";
>print "<h1>Hello, world!</h1>\n";
>print "</body> </html>\n";
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)