Re: urlp strange behaviour ?

2015-12-09 Thread Willy Tarreau
Hi Aleks, On Tue, Dec 08, 2015 at 11:35:20PM +0100, Aleksandar Lazic wrote: > Hi. > > Am 08-12-2015 11:23, schrieb Thierry FOURNIER: > >Hi, > > > >I agree with you, but in HAProxy, the ';' is considered as parameter > >delimiter. Its hardcoded, and I don't known the reason. > > There are

Re: urlp strange behaviour ?

2015-12-09 Thread Laurent Penot
Hi Willy, Thanks for your suggestion, it is working as expected. I’ll keep it this way now. Best Laurent On 09/12/15 11:24, "Willy Tarreau" wrote: >Hi Aleks, > >On Tue, Dec 08, 2015 at 11:35:20PM +0100, Aleksandar Lazic wrote: >> Hi. >> >> Am 08-12-2015 11:23, schrieb

urlp strange behaviour ?

2015-12-08 Thread Laurent Penot
HI, I received URL from which i need to extract several parameters, I do that using urlp in lua. Values of parameters are urlencoded. And I notice something strange : urlp seems to get only the first part of the value when the 2 char “;+” or “+;” are in the value of the parameter. From the php

Re: urlp strange behaviour ?

2015-12-08 Thread Thierry FOURNIER
Hi, I agree with you, but in HAProxy, the ';' is considered as parameter delimiter. Its hardcoded, and I don't known the reason. So the behaviour that you observe is the normal HAProxy behaviour. Thierry On Tue, 8 Dec 2015 09:17:38 + Laurent Penot wrote: > HI, > >

Re: urlp strange behaviour ?

2015-12-08 Thread Laurent Penot
Thx for your answer Thierry. If you try with the URI : /dump_headers.php?p1=value1=word1;word2;word3=test Urlp called in haproxy configuration will return : “word1” which corresponds to your answer. But if you use urlp from lua, it will return you the correct value, see my dump : [info]

Re: urlp strange behaviour ?

2015-12-08 Thread Aleksandar Lazic
Hi. Am 08-12-2015 11:23, schrieb Thierry FOURNIER: Hi, I agree with you, but in HAProxy, the ';' is considered as parameter delimiter. Its hardcoded, and I don't known the reason. There are several reasons for the ';' to be a separator similar like '&'.

Re: urlp strange behaviour ?

2015-12-08 Thread thierry . fournier
On Tue, 8 Dec 2015 20:52:45 + Laurent Penot wrote: > Thx for your answer Thierry. > > If you try with the URI : > /dump_headers.php?p1=value1=word1;word2;word3=test > > Urlp called in haproxy configuration will return : “word1” which corresponds > to your answer. >