From: Mark Slagell Date: 2002-04-16T03:22:05+09:00 Subject: Re: mime type Chris Ross wrote: >On Mon, Apr 15, 2002 at 09:21:02PM +0900, Tobias Reif muttered... >: Hi all, >: >: puts "content-type: text/plain\n" >: >: doesn't work (server error), but >: >: print "content-type: text/plain\n\n" >: >: works; why? >: > >because you need atleast one blank line between the headers [which >content-type is] and the content of the page. It's a webserver/client >thing. Perfectly normal :) > >Regards > >Chris > "I was told once..." that to be excruciatingly correct you are supposed to include carriage returns (\r\n\r\n) -- because it's the spec, even though it generally works with just the newlines. Can anybody confirm/deny this? Mark