From: Austin Ziegler Date: 2005-01-29T05:43:27+09:00 Subject: Re: Apache -> malformed header from script On Sat, 29 Jan 2005 05:33:29 +0900, Douglas Livingstone wrote: > > 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...) puts <<-EOS Status: 302 Content-type: text/html

Hello World!

EOS -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca