httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Brown" <>
Subject Bake & err_header_out error
Date Fri, 03 Jun 2005 20:35:20 GMT
I'm having problems with the latest libapreq2-2.05.

If I run the sample script (below) I get this error

"Can't call method "err_headers_out" on an undefined value at
line 85"

The error comes at the "bake" command.. commenting it out lets the script
run fine (albeit with no cookie sent to the browser).

use Apache2::Request;
use Apache2::Cookie;
$r = shift; $c_out = Apache2::Cookie->new($r,  -name  => "mycookie",  -value
=> "TEST VALUE" );$c_out->path("/bar");               # set path to "/bar"
$c_out->bake;                       # send cookie in response
headers$r->content_type("text/html");$r->print("Hello World");

View raw message