[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl-WebCGI] Re: Document contained no data



On 20000226.155548, Wolf Alexander Hauser <woffl@gmx.net> wrote:

>I wanted to run the following small perl programm ("demo.pl"):
>- ---------------------------------------------
>#!/usr/bin/perl
>
>print "Content-type: text/html\n\n";
>print "Hello, Wold!";
>- ---------------------------------------------

Remember that you are sending back HTML, so you should be doing something 
more like:

print <<EndOfResponse;
Content-type: text/html

<HTML>
<BODY>
<P>Hello World!</P>
</BODY>
</HTML>
EndOfResponse


I don't know if it's got anything to do with your problem, but the web 
browser is expecting text/html, so you may as well give it HTML, instead 
of text/plain.

Henry.

==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-webcgi-request@macperl.org