Hans wrote:
I've done a fair amount of searching and still can not find an answer to
this.

I'm writing a mod_perl2 handler and would like to output my own headers. Specifically I'd like to output headers like this:
-----------------------------
ICY 200 OK
icy-notice1: <some info>
icy-name: <some info>
icy-url: <some info>
Content-Length: <length>


<SOME CONTENT>
-----------------------------
When trying to output these headers it doesn't work and just becomes part
of the content.  If I remove the "ICY 200 OK" line, the rest of the
headers work just fine.  I'd like to override the "HTTP/1.1" headers.  How
can this be done?

try setting $r->assbackwards(1) before returning your response. this should supress the apache headers and allow only your own to get through, provided you print them instead of putting them in the headers_out table.


btw, can you please explain what ICY is for me? the $r->assbackwards(1) thing was specifically implemented in mod_perl 1.0 to support ICY, and I used it in examples I give of this, but I always have to say that I have no idea what ICY is.

thanks

--Geoff



Reply via email to