Hi,

I have a couple of questions about what haproxy can and cannot do.

I have the need to do a regex search on the URL.  

example:  

GET http://1.1.1.1/rs/msr/MSISDN/1234567

my regex will get the last digit of the MSISDN (the number in the next path 
extent -1234567):
3 servers will handle digits 0-3, 4-6, 7-9 respectively.

so, this GET request would be routed to server #3... 

It appears that this should be possible from the documentation... but I didn't 
see a good example of this.  Anything you could provide for that would be 
awesome...

My second use case is for a POST.  Same last digit algorithm from above except 
that the MSISDN number will be buried in some XML that will be in the message 
body.

POST http://1.1.1.1/rs/msr

Body:  <subscriber><field name="x">y</field><field 
name="MSISDN">1234562</field></subscriber>

in this case, the POST would be routed to server #1...

Is this possible and do you have an example of how to do this?

Thanks in advance for whatever help you can give me,
Dave


 

Reply via email to