Re: Conditionally strip/remove a specific cookie from request

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---- ohaya@xxxxxxx wrote: 
> 
> > >
> > Try
> > RequestHeader edit "Cookie" "MyCookie=.*(\;)?"
> > 
> > Anyway, more interesting question for me was how are you going to check for
> > the first condition, existance of the arbiteary header MYHEADER? Or you are
> > talking here about standard http header?
> > 
> > > which I thought SHOULD work, but it doesn't.
> > >
> > > Anyone?  Any regex experts out there?  I know that I'm TERRIBLE with them
> > :(...
> > >
> > > Thanks,
> > > Jim
> 
> Igor,
> 
> Thanks for your suggestion, but it:
> 
> 1) Leaves a trailing semicolon if the cookie I want to remove is at the very end of the "Cookie" value/string, and
> 2) Removes the cookie I want to remove and everything after that if the cookie I want to remove is not at the very end of the "Cookie" value/string.
> 
> Re. your question: I probably didn't explain clearly what I meant by an arbitrary MYHEADER.  We know what that header name is, so it's "arbitrary" in the sense that it'll be what we need, but it's not one of the standard HTTP headers.
> 
> Jim

Sorry - forgot to include the mailing list in the email...

Jim

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux