On Sunday, Jun 15, 2003, at 05:36 US/Pacific, Kristofer Hoch wrote: [..]

print "Content-Type: text/html\n\n"; # Inaccurate print "Content-type: text/html\n\n"; # Accurate

The difference is in case sensitivity. Notice the word '-type:'

actually volks, you really should do that a bit more safely with

our $CRLF = "\015\012"; # "\r\n" is not portable

since there is the chance that the "\n\n" will not be
as portable as you would prefer...

henc you wind up with

print "Content-type: text/html $CRLF$CRLF"; # Accurate

IF and ONLY IF you really meant that to be the last
of the header lines that you want to ship back.

technically you will want to pass in either an array

@headers = ("Content-type: text/html", ....)

and then parse them out

        print "$_$CRLF" foreach(@headers);
        print $CRLF ;

or you want to build that out as a hash....

OK?

ciao
drieux

---


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to