Jeff Ambrosino wrote:
> We have the need to delete a specific Set-Cookie header found in the
> reponse within a reverse proxy [Apache2, libapreq2, mod_perl2,
> mod_proxy with an HTTP output filter].  Looking at the docs for
> APR::Table [1] it doesn't appear that this is possible.  Although you
> can "unset" and "delete" based on individual keys, we have multiple
> Set-Cookie response headers (so they all use the same key i.e.
> "Set-Cookie").  I don't see a way to zero-in on a specific instance of
> the header and remove it.  Any ideas?
> 
> FYI I'd prefer not to have to walk and re-create the entire APR table,
> as this is something I potentially have to do for each and every
> response.

I think that's your only recourse at this point, using APR::Table::do().

if memory serves, the tables do not contain multiple entries per key like a
database, but rather the values are concatinated together along with the
key, so that conceptually it looks like

  my %table = ( key => { value, valueb } );

HTH

--Geoff

Reply via email to