Re: Reading err_headers_out values
[prev]
[thread]
[next]
[Date index for 2005/04/21]
ted wrote:
> Hi,
>
> I am baking three cookies, then attempting to see them using the
> err_headers_out method. The problem is that when baked, the key
> for each cookie is the same: 'Set-Cookie'. The Apache::Table
> object is ok with this, but when it is tied to the perl hash
> the duplicate keys seem to trip things up.
well, it's the nature of a hash. no surprises there :)
> I cannot see the
> individual values. Is there any way to retrieve the values?
if you want to iterate the headers use
$r->err_headers_out->do(sub {...}); # see the docs for sub syntax
if you want to retrieve a list of values try
$r->err_headers_out->get('Set-Cookie');
HTH
--Geoff
 |
 |
Re: Reading err_headers_out values
Geoffrey Young 19:24 on 21 Apr 2005
|