From: Charles Comstock Date: 2004-02-22T05:49:50+09:00 Subject: Re: Puzzling... Charles Comstock wrote: > Robert wrote: > >> Jon A. Lambert wrote: >> >>> "Ruby Tuesday" wrote: >> >> >> >> >>> >>> BTW this is incorrect. >>> print "Content-type: text/html \n\n\n" >>> >>> It should be >>> print "Content-type: text/html \r\n\r\n" >>> >>> >> Is that a Ruby thing? That certainly isn't how Perl does it. Perl does >> the following: >> >> print "Content-type: text/html\n\n"; >> >> Which I believe is the standard header. > > > I'm pretty sure under the rfs your supposed to do \r\n\r\n, but I think > most servers are setup to just look for a single blank line before > actual content, and so they generally just look for a \n and thus the > \n\n works. But technically it's supposed to be \r\n\r\n I think. > > Charles Comstock Oops dunno what I was typing, I meant RFC, not rfs, Charles Comstock