Re: Reading err_headers_out values

[prev] [thread] [next] [Date index for 2005/04/21]

From: Geoffrey Young
Subject: Re: Reading err_headers_out values
Date: 19:24 on 21 Apr 2005

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

Reading err_headers_out values
ted 19:14 on 21 Apr 2005

Re: Reading err_headers_out values
Geoffrey Young 19:24 on 21 Apr 2005

Re: Reading err_headers_out values
Jonathan Vanasco 20:01 on 21 Apr 2005

Generated at 09:30 on 27 Apr 2005 by mariachi v0.52