« Return to Thread: whence $r->send_http_header ?

Re: whence $r->send_http_header ?

by Jie Gao :: Rate this Message:

Reply to Author | View in Thread

* John M. Dlugosz <l3hc4oo02@...> wrote:

> Consider this fragment:
>
>  $r->content_type("image/$type");
>  $r->send_http_header;
>
>  $m->print($img);
>
> The method send_http_header seems to no longer exist.  What should I be using instead?  For now I just commented it out.

# perl -MModPerl::MethodLookup -e print_method send_http_header
'send_http_header' is not a part of the mod_perl 2.0 API
use 'content_type' instead. To use method 'content_type' add:
        use Apache2::RequestRec ();


Regards,



Jie

 « Return to Thread: whence $r->send_http_header ?

LightInTheBox - Buy quality products at wholesale price!