Re: issue with acl pattern -m match on a string starting with space or containing a comma, with 1.5-dev21

2014-01-17 Thread Thierry FOURNIER
Hi, First, you must not escape the comma character. The fetch method hdr split multivalue header before the pattern matching operation. The header user-agent containing comma is processed like two headers: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML and like Gecko)

Re: issue with acl pattern -m match on a string starting with space or containing a comma, with 1.5-dev21

2014-01-17 Thread PiBa-NL
Hi, Indeed req.fhdr(x) works for this. I should (again) have read the manual better. Though the proper section is a bit harder to find a search for keyword doesn't give any results.. Nevertheless i should r.t.fine.m. as it is very complete and correct for pretty much every option possible.

Re: issue with acl pattern -m match on a string starting with space or containing a comma, with 1.5-dev21

2014-01-17 Thread Cyril Bonté
Le 17/01/2014 21:06, PiBa-NL a écrit : Though the proper section is a bit harder to find a search for keyword doesn't give any results.. This is in my to do list, I hope to find time to address this soon. -- Cyril Bonté

issue with acl pattern -m match on a string starting with space or containing a comma, with 1.5-dev21

2014-01-16 Thread PiBa-NL
Hi, Using HAProxy 1.5-dev21 i'm having trouble getting it to match my user-agent with an acl that uses -m pattern matching.. The browser is Chrome 31.0.1650.63 which sends useragent string: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1700.76