On Wed, May 31, 2006 at 12:38:10AM -0400, Adam wrote:

> > > #!/bin/sh
> > > 
> > > echo "Content-Type: text/html"
> > > echo ""
> > > echo "I'm sorry Dave, I'm afraid I can't do that."
> 
> HTTP headers are terminated by "\r\n" not "\n".

Yes, correctly HTTP headers are terminated by "\r\n".  But most
webservers also understand "\n" in case of a CGI header.  And this
example generates "\n" not "\r\n":

0000000   C   o   n   t   e   n   t   -   T   y   p   e   :       t   e
0000010   x   t   /   p   l   a   i   n  \n  \n   I   '   m       s   o
0000020   r   r   y       D   a   v   e   ,       I   '   m       a   f
0000030   r   a   i   d       I       c   a   n   '   t       d   o    
0000040   t   h   a   t   .  \n                                        
0000046

Have a nice day.

-- 
Marcus Glocker, [EMAIL PROTECTED], http://www.nazgul.ch -----------------

Reply via email to