On 07/25/2012 08:22 AM, Stojan Rancic (Iprom) wrote: > Hello, > > we're experiencing issues with HAproxy 1.5-dev11 rejecting GET requests > with UTF8-encoded characters. The encoding happens with Javascript's > Encode function for east european characters (š, č, ž, etc) . > > The requests (as seen from 'echo "show errors" | socat stdio > unix-connect:/var/run/haproxy.sock') are: > > Total events captured on [25/Jul/2012:08:10:16.070] : 1347 > > [25/Jul/2012:08:10:16.033] frontend http-in (#2): invalid request > backend <NONE> (#-1), server <NONE> (#-1), event #1346 > src 91.216.172.145:40752, session #527199, session flags 0x00000000 > HTTP msg state 27, msg flags 0x00000000, tx flags 0x00000000 > HTTP chunk len 0 bytes, HTTP body len 0 bytes > buffer flags 0x00809002, out 0 bytes, total 873 bytes > pending 873 bytes, wrapping at 16384, error at position 51: > > 00000 GET /XXX/YYY?z=39;t=js;sid=index;ssid=\xC2\xA7=index;m=ZZ > 00064+ ZZ;ref=http://www.ZZZ.com/lala;num=9;kw=;flash=0;res=lala;r > 00134+ e=http%3A%2F%2Fwww.QQQ.com%2Fsi%2FZZZ.html;rmc=1343196615443;cpre > 00204+ mium=false;url=http%3A//www.ZZZ.com/lala HTTP/1.1\r\n
I think that you should urlencode utf8 strings you want to put into URI or query string. Check out encodeURIComponent() -- Brane F. Gračnar skrbnik aplikacij/applications manager e: [email protected] TSmedia, d.o.o. a: Cigaletova 15, 1000 Ljubljana; Slovenia t: +386 1 473 00 10 f: +386 1 473 00 16

