From: Douglas Livingstone Date: 2005-01-29T05:33:29+09:00 Subject: Re: Apache -> malformed header from script > Try just "\n" instead of "\r\n". Since you're on Windows, I think Ruby will > output "\r\n" when you use "\n". You may be sending too many newlines. No joy, but, I have solved it! The working code is: #!ruby print "Content-type: text/html\n\n" print "Hello World!\n" Turns out ruby or apache or something else is sending the 200 for me, which is nice :) (though I wonder how to change it then... hmm... back to google...) All that is needed is print "\n\n" to get output, though need the text/html for html naturally :) Thanks, Douglas