RE: err_headers_out Q

2000-06-19 Thread Geoffrey Young
-Original Message- From: Doug MacEachern [mailto:[EMAIL PROTECTED]] Sent: Friday, June 09, 2000 1:21 PM To: Geoffrey Young Cc: '[EMAIL PROTECTED]' Subject: Re: err_headers_out Q On Fri, 2 Jun 2000, Geoffrey Young wrote: hi all... this simple script: #!/usr/bin

Re: err_headers_out Q

2000-06-09 Thread Doug MacEachern
On Fri, 2 Jun 2000, Geoffrey Young wrote: hi all... this simple script: #!/usr/bin/perl my $r = shift; $r-err_headers_out-add('Set-Cookie' = "name=error"); warn "pre headers_out: " . $r-headers_out-get('Set-Cookie'); $r-send_http_header('text/plain'); warn "post headers_out: "

Re: err_headers_out Q

2000-06-09 Thread Drew Taylor
Doug MacEachern wrote: see http_protocol.c:send_http_header(): if (!ap_is_empty_table(r-err_headers_out)) r-headers_out = ap_overlay_tables(r-pool, r-err_headers_out, r-headers_out); Basically, what the code above says is that when

Re: err_headers_out Q

2000-06-09 Thread Doug MacEachern
On Fri, 9 Jun 2000, Drew Taylor wrote: Doug MacEachern wrote: see http_protocol.c:send_http_header(): if (!ap_is_empty_table(r-err_headers_out)) r-headers_out = ap_overlay_tables(r-pool, r-err_headers_out, r-headers_out);

Re: err_headers_out Q

2000-06-09 Thread Drew Taylor
Doug MacEachern wrote: yeah, it's explained in httpd.h: * The difference between headers_out and err_headers_out is that the * latter are printed even on error, and persist across internal redirects * (so the headers printed for ErrorDocument handlers will have them). Oh...

err_headers_out Q

2000-06-02 Thread Geoffrey Young
hi all... this simple script: #!/usr/bin/perl my $r = shift; $r-err_headers_out-add('Set-Cookie' = "name=error"); warn "pre headers_out: " . $r-headers_out-get('Set-Cookie'); $r-send_http_header('text/plain'); warn "post headers_out: " . $r-headers_out-get('Set-Cookie'); print "done";