ACL based on request parameter using POST method

2014-01-30 Thread Dmitry Sivachenko
Hello! (haproxy-1.5-dev21) Using urlp() I can match specific parameter value and dispatch request to different backends based on that value: acl PARAM1 urlp(test) 1 use_backend BE1-back if PARAM1 acl PARAM2 urlp(test) 2 use_backend BE2-back if PARAM2 It works if I specify that parameter

Re: ACL based on request parameter using POST method

2014-01-30 Thread Baptiste
Hu Dmitry, In Post, the parameters are in the body. You may be able to match them using the payload ACLs (HAProxy 1.5 only). Baptiste On Thu, Jan 30, 2014 at 4:20 PM, Dmitry Sivachenko trtrmi...@gmail.com wrote: Hello! (haproxy-1.5-dev21) Using urlp() I can match specific parameter value

Re: ACL based on request parameter using POST method

2014-01-30 Thread Dmitry Sivachenko
On 30 янв. 2014 г., at 19:30, Baptiste bed...@gmail.com wrote: Hu Dmitry, In Post, the parameters are in the body. You may be able to match them using the payload ACLs (HAProxy 1.5 only). Hello, I tried acl PARAM1 payload(0,500) -m sub test=1 use_backend BE1-back if PARAM1 and it