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

Re: [MacPerl-WebCGI] Re: [MacPerl-AnyPerl] Malformed headers...



At 9:20 AM -0700 12/7/99, Jason White wrote:
>At 04:03 PM 12/6/99 -0500, Ricky Morse wrote:
>>I think that the \r\n is used in the header -- not in the actual
>>document.  It could be that I'm mistaking the context: the print
>>statement is being used to create a HTTP response header?
>>
>>Ricky
>>
>>-----
>>Pukku
>>
>Yes...print is being used to create the HTTP response header. That's what
>I've always used.  Again, don't know if it's a Mac vs. *n*x boxes as I've
>dealt very little with CGI/Perl on a Mac server.  Did once, but wasn't very
>rewarding.  I still author a bit on the Mac, but it's always delivered
>elsewhere.

I beleive (and i'm pretty sure about myself, too..) that \n is a "local
break" be it used on a pc/dos vs *n*x vs macos..  \r itself (alone) is unix
linebreak, \n alone is macos linebreak; and \n\r alone is pc/dos linebreak

when using cgi, i've always used \n\n and never had a prob.  :)

Good luck

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

--T J



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