From: kwatch@... (kwatch) Date: 2002-11-26T18:46:07+09:00 Subject: Re: Q: mod_ruby may be NPH? tom@pogostick.net (Tom Danielsen) wrote in message news:... > > http://www.rubydoc.org/books/modruby/modruby.pdf , chapter 5 > Oh, great! I understand that I must print HTTP header when using 'pure' mod_ruby. > r = Apache.request > r.content_type = 'text/html' > r.send_http_header > exit(Apache::OK) if r.header_only? > print < > >

mod_ruby test

> > > END Should I use Apache.request? On my experiment, printing "HTTP/1.1 200 OK\n" seemes to be working. ..---------------------------------------- #!/usr/bin/ruby print "HTTP/1.1 200 OK\n" # is it right? print "Content-Type: text/html\n\n" print <

mod_ruby test

END ..---------------------------------------- regards, kwatch