Re: err_headers_out vs headers_out

2003-10-18 Thread Geoffrey Young
Tofu Optimist wrote: I missed the reference to Recipe 3.13. That was right on target. Thanks. I am interpreting that recipe to mean "when setting the HTTP header fields for a redirect, always use err_headers_out, except when setting location, which is a special case, and may use headers_out". H

Re: err_headers_out vs headers_out

2003-10-18 Thread Tofu Optimist
I missed the reference to Recipe 3.13. That was right on target. Thanks. I am interpreting that recipe to mean "when setting the HTTP header fields for a redirect, always use err_headers_out, except when setting location, which is a special case, and may use headers_out". Holler if I am off base

Re: err_headers_out vs headers_out

2003-10-18 Thread Ged Haywood
Hello again, On Sat, 18 Oct 2003, Tofu Optimist wrote: > Hmmm... I had read that thread; none of the postings > address setting anything beyond a cookie. Hmmm... in the message to which I pointed, did you also read "/me sliently points to recipe 3.13 in the cookbook, too :)" which addresses

Re: err_headers_out vs headers_out

2003-10-18 Thread Tofu Optimist
Hmmm... I had read that thread; none of the postings address setting anything beyond a cookie. I'm looking for advice on something like this sub cookie_and_redirect { my ( $r, $cookie, $dest ) = @_; $r->headers_out->set( Location => $dest ); $r->headers_out->add( 'P3P' => P3P_CP );

Re: err_headers_out vs headers_out

2003-10-18 Thread John Siracusa
On 10/18/03 11:18 AM, Ged Haywood wrote: > http://www.mail-archive.com/[EMAIL PROTECTED]/msg36041.html Whoop, I think this is the post I was looking for earlier :) http://ken.coar.org/burrow/index?month=2003-07#511 -John

Re: err_headers_out vs headers_out

2003-10-18 Thread Ged Haywood
Hi there, On Sat, 18 Oct 2003, Tofu Optimist wrote: > [1] When should one use err_headers_out and when > should one use headers_out? http://www.mail-archive.com/[EMAIL PROTECTED]/msg36041.html > [2] Also, what is the difference between the 'set' and > 'add' methods? (Where might I find docs fo

err_headers_out vs headers_out

2003-10-18 Thread Tofu Optimist
[1] When should one use err_headers_out and when should one use headers_out? I know when redirecting the former is used for Set-Cookie and the later is used for Location (Practical Mod Perl p. 756), but what about cache control, p3p, etc? (code fragment below) [2] Also, what is the difference be