Re: Question on rewriting query string

2015-05-08 Thread Patrick Slattery
Wow, very nice, regular expressions sure are powerful :-) Here is what I ended up with: defaults mode http timeout connect 1s timeout client 1s timeout server 1s listen HTTP-in bind 127.0.0.1:80 reqrep .*(sid=[a-z0-9A-Z]*)(sid_guid=[^]*).*(strid=[0-9a-zA-Z]*) \1\2\3shopurl=search.aspx

Re: Question on rewriting query string

2015-05-07 Thread Patrick Slattery
txn.res:send(response) txn:close() end I'm just curious if this is the right way to do this in HAProxy? On May 07, 2015, at 10:56 AM, Patrick Slattery patrickmslatt...@mac.com wrote: Hi, I'm trying to figure out how rewrite an incoming query string such as: http://www.example.com/?domain

Question on rewriting query string

2015-05-07 Thread Patrick Slattery
Hi, I'm trying to figure out how rewrite an incoming query string such as: http://www.example.com/?domain=companyx.comsdn=sid=123456789sid_guid=d8bfbc1a-c790-4cf8-beec-ffbbf72d9476k=mystringstrid=1e9611e961t=%20? becomes: