On Wed, May 09, 2012 at 04:01:12PM -0700, Malcolm Handley wrote: > Oh, one more question: if I use reqrep to modify the cookies header > that's going to destroy the original header, I suspect, which would > cause problems for the web server that wants to read those cookies. Is > there any way around that?
There's another ugly trick you can do which consists in replacing the cookie header by itself after the header you want. Something like this : reqirep ^(Cookie:.*COOK=)([^\ ;,]*)(.*) x-cook:\ \2\r\n\1\2\3 You may have to fix this as it's not tested, but I think you get the idea. Willy