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

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



At 09:50 AM 12/6/99 -0500, Ricky Morse wrote:
>Nguon Hao Ching wrote:
>
>>> print "Content-type: application/x-www-urlformencoded\n\n",
>>>       'answer=', (param ('number1') * param ('number2'));
>
>Ummm... just one minor question about this: shouldn't that be "\r\n"?
>
>Ricky
>
>-----
>Pukku

Not really sure.  I first learned Perl on the Mac and still use it some on
my Mac, but all my cgi stuff is done on *n*x boxes.  Have never used \r (in
my cgi that is).  Why would one use \r in a cgi?  I have only ever used it
[\r] on 'local' stuff running when I wanted to write CRLF (for WinDOS
linebreaks) or just plan CR (Mac linebreaks) to file. Even then I was
advised to use hex codes (\012\015 or \015\012 respectively...can't
remember).  Any \r|\n gurus out there want to pontificate the matter?

Jason


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