On Thu, 3 Apr 2003, Denis Banovic wrote: > Hi! > > I'm trying to figure out, how to Add / Modify the HTTP Headers like > Content Type, Cache aso... > > on mod_perl 1 I've used: > > $r->send_cgi_header($custom_headers); > > but this won't work mod_perl 2... > > I've searched in Apache::compat all I've found was the function header_out > that internally calls $r->headers_out()... > > Can somebody please tell me how to set the right headers???
TFM is a little hard to find, but when you R http://xrl.us/fix you'll see that all you need to do to call $r->send_cgi_header() is: use Apache::Response(); The docs need work, but if you are porting your code from mp1 to mp2 you really should spend some time reading _all_ the mp2 docs, don't you think? Start at http://perl.apache.org/docs/2.0/devel/porting/porting.html and just follow every link from there. > here is the code from Apache::compat Most of us already have that :) - nick -- ~~~~~~~~~~~~~~~~~~~~ Nick Tonkin {|8^)>