Andrew Ho wrote: > Hello, > > I have a mod_perl (Apache 1.3.33, mod_perl 1.29) handler which returns > HTTP error codes on several conditions, and uses a custom_response() to > set a custom body. The custom body is XML (this is a middleware > component and errors are read by machines, not humans), so I'd like to > send a > "Content-Type: text/xml" header.
sorry, but you just can't do it. see this from the archives http://www.mail-archive.com/modperl@apache.org/msg20549.html --Geoff