[I keep getting bounced msgs from the mail server, so am removing the earlier 
replies.]

Igor (et al), 
 
I'm ok with 2.4.3 and the <If> for the conditional part.  Also, with that, for 
editing the Cookie header, I figured out that I may be able to use 
"RequestHeader edit" to edit the "Cookie" header value (ideally, we want to be 
able to remove just ONE, SPECIFIC cookie in the "Cookie" header value/string. 
 
Something like: 
 
RequestHeader edit Cookie <regex> 
 
The problem I'm having now is that <regex>. 
 
Let me explain:  The thing is, the cookie that we want to remove can occur in 
the "middle" of the "Cookie" header value, in which case, that cookie would end 
with a semi-colon (";"). 
 
However, if the cookie that we want to remove happens to be the "last" cookie 
in 
the "Cookie" header value/string, that will end with nothing (no ";" at end). 
 
Does anyone know what kind of regex I can use that would handle both cases (the 
cookie-of-interest ending with either a ";" or nothing/end-of-string? 
 
I've tried something like: 
 
RequestHeader edit "Cookie" "MyCookie=.*(;|\z)" 
 
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 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to