From: Hee-Sob Park Date: 2000-12-18T16:40:03+09:00 Subject: [ruby-talk:7556] Re: mod_ruby Hi, "Jeremy C" wrote in message news:7Zf%5.2749$g37.174797@bgtnsc05-news.ops.worldnet.att.net... > Greetings! > > I just started working with mod_ruby (infact I just installed it today) and > I have a question already ... oh boy. > > Anyway, I made a simple ruby script (as simple as you can get for a cgi): > > print "Hello from Ruby!" > > and Netscape and Lynx would not display anything saying that the page had no > content. If I add the line: > > print "Content-type: text/html\r\n\r\n" > > to the top of the script, it now display's the Hello from Ruby! but it also > display's Content-type: text/html at the top.. > > anyone know why? > Try this $NOHEADER=true print "Content-type: text/html\r\n\r\n" print "Hello from Ruby!" > > Jeremy - jeremy@cowgar_REMOVE_FOR_NO_SPAM_.com > Park, Hee-Sob