[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with sending custom headers in mod_perl2


On 5/2/07, Victor Danilchenko <suppressed> wrote:
        I seem to be missing something very obvious... I have:

$r->header_out("Refresh"=>"0; URL=$uri\n");

I think you're looking for this:

$r->headers_out->add("Refresh"=>"0; URL=$uri\n");

You were trying to use mod_perl 1 syntax.  See this for more:
http://perl.apache.org/docs/2.0/user/porting/compat.html#C__r_E_gt_header_out_

- Perrin


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.