From: Chris Morris Date: 2003-04-04T02:45:16+09:00 Subject: Re: cgi serving xml from Apache problem > (The Ruby for this is simple: > > def output_feed > print "Content-type: text/xml\n\n" > print rss_xml > end > ) Seems this change fixed it: def output_feed print "Content-type: text/xml\n\n" $stdout.flush print rss_xml $stdout.flush end Without the flush, I guess Apache was aware that the output may not be done and automatically went into 'chunked' mode. With the flush, 'Transfer-encoded: chunked' is not used and the XML comes across clean. Chris http://clabs.org