Re: Cookie inspection

2007-05-29 Thread Omar Kilani
headers will be read sequentially > and the last found value is used. That makes a lot more sense. :) 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-in

Re: Cookie inspection

2007-05-29 Thread Dag-Erling Smørgrav
"Poul-Henning Kamp" <[EMAIL PROTECTED]> writes: > Does your backend include a proper Vary: header when it selects on > language ? Applications which use cookies should emit "Vary: Cookie". The HTTP protocol provides a mechanism for selecting the language of a page (client sends Accept-Language, s

Re: Cookie inspection

2007-05-29 Thread Poul-Henning Kamp
http.Cookie[language] and just as for http headers, 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 o

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

Cookie inspection

2007-05-28 Thread Omar Kilani
alues for the same cookie 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 c