Re: Puzzlement : empty field vs. ,field() -m

2023-04-18 Thread Jim Freeman
On Tue, Apr 18, 2023 at 12:56 AM Willy Tarreau wrote: > > Hi Jim, > > [side note: please guys, avoid top-posting, it makes it very difficult > to quote context in responses] Repenting as fast as I can ... * https://en.wikipedia.org/wiki/Posting_style#Interleaved_style ( does a list etiquette gu

Re: Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Willy Tarreau
Hi Jim, [side note: please guys, avoid top-posting, it makes it very difficult to quote context in responses] On Mon, Apr 17, 2023 at 09:17:03PM -0600, Jim Freeman wrote: > Aleksandar - thanks for the feedback ! (haproxy -vv : attached) > > I'd spent a good long while scouring the config docs (

Re: Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Jim Freeman
Aleksandar - thanks for the feedback ! (haproxy -vv : attached) I'd spent a good long while scouring the config docs (and Google) seeking enlightenment, but ... No joy using either of '! -m found -m int 0' or '! -m found'. Here's hoping someone/anyone else has experience making an empty field() w

Re: Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Aleksandar Lazic
Hi. On 18.04.23 00:55, Jim Freeman wrote: In splitting out fields from req.cook, populated fields work well, but detecting an unset field has me befuddled: acl COOK_META_MISSING req.cook(cook2hdr),field(3,\#) ! -m found -m str '' does not detect that a cookie/field is empty ? Running the

Puzzlement : empty field vs. ,field() -m

2023-04-17 Thread Jim Freeman
In splitting out fields from req.cook, populated fields work well, but detecting an unset field has me befuddled: acl COOK_META_MISSING req.cook(cook2hdr),field(3,\#) ! -m found -m str '' does not detect that a cookie/field is empty ? Running the attached 'hdrs' script against the attached ha