Re: Cookie inspection

2007-05-29 Thread Dag-Erling Smørgrav
Omar Kilani [EMAIL PROTECTED] writes: I'd like to modify req.hash in vcl_hash to take into account the value of this particular cookie [...] From looking through the varnish-cache code, I don't think this type of operation is supported, and I'm not sure what the best way to represent this in

Re: Cookie inspection

2007-05-29 Thread Poul-Henning Kamp
, the headers will be read sequentially and the last found value is used. http://treehou.se/~omar/cookie-inspection-1.patch Not bad :-) The other thing I'd like to be able to do is have some sort of 'first match over an array of header values' VCL construct, so you could vary the hash by whatever languages

Re: Cookie inspection

2007-05-29 Thread Omar Kilani
. :) Out of curiosity, are things like this documented on Trac or somewhere else? I probably missed it searching the tickets - has this work been started? http://treehou.se/~omar/cookie-inspection-1.patch Not bad :-) Hehe - I really just meant to illustrate what I was getting at with the patch

Cookie inspection

2007-05-28 Thread Omar Kilani
name... :) and *looks* right, but obviously has a very different meaning in VCL where it compiles to: VRT_GetHdr(sp, 1, \020Cookie.LANGUAGE:) I've created a small patch: http://treehou.se/~omar/cookie-inspection-1.patch Which implements VRT_GetHdrField and cookie inspection. This should