yep. that worked around the broken URL.

BTW. this behaviour started with Copy & Pasting a URL with an umlaut into Internet explorer.

Thx & bye.
Olivier <mailto:[email protected]>
21. Oktober 2014 14:24
Hello,


    I've got a problem with a specific URL which runs through haproxy
    and produces a HTTP 400 BADREQ.



You may have invalid characters in URL, and HAProxy filters it by default.
To change this behaviour, take a look at option accept-invalid-http-request.

http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#4-option%20accept-invalid-http-request


Robert Bartl <mailto:[email protected]>
21. Oktober 2014 14:17
Hy,

I've got a problem with a specific URL which runs through haproxy and produces a HTTP 400 BADREQ. it seems haproxy doesnt like the encoding of the URL, when i remove the umlaut in it it gets through correctly

i've tested it with haproxy "1.5.5-1~bpo70+1" from debian. (1.4 works)

URL is called via
curl "http://hostname:8180/produkte/suche/581-brand?fh_search=töpfeblablablabla&selectedSortBy=relevance&16";

and produces

HTTP/1.0 400 Bad request
Cache-Control: no-cache
Connection: close
Content-Type: text/html

<html><body><h1>400 Bad request</h1>
Your browser sent an invalid request.
</body></html>

Log Entry:
Oct 21 13:51:32 n***-proxy001 haproxy[26705]: 127.0.0.1:34847 [21/Oct/2014:13:51:32.824] mbxapp mbxapp/<NOSRV> -1/-1/-1/-1/0 400 188 - - PRNN 5/0/0/0/3 0/0 "<BADREQ>"


Anybody a idea ?..
bug probably ?

Thx & Bye.


TCPDUMP Capture of the Request:

14:02:07.988808 IP 10.96.250.125.59121 > nclutz-o-proxy001.ops.local.netconomy.net.8180: Flags [P.], seq 1:188, ack 1, win 4104, options [nop,nop,TS val 681626049 ecr 2591261731], length 187
    0x0000:  4500 00ef 4750 4000 4006 c166 0a60 fa7d  E...GP@[email protected].`.}
    0x0010:  0a60 2215 e6f1 1ff4 a181 5652 9834 9c9e  .`".......VR.4..
    0x0020:  8018 1008 3f39 0000 0101 080a 28a0 c9c1  ....?9......(...
    0x0030:  9a73 8423 4745 5420 2f70 726f 6475 6b74  .s.#GET./produkt
    0x0040:  652f 7375 6368 652f 3538 312d 6272 616e  e/suche/581-bran
    0x0050:  643f 6668 5f73 6561 7263 683d 74c3 b670  d?fh_search=t..p
    0x0060:  6665 626c 6162 6c61 626c 6162 6c61 2673  feblablablabla&s
    0x0070:  656c 6563 7465 6453 6f72 7442 793d 7265  electedSortBy=re
    0x0080:  6c65 7661 6e63 6526 3136 2048 5454 502f  levance&16.HTTP/
    0x0090:  312e 310d 0a55 7365 722d 4167 656e 743a  1.1..User-Agent:
    0x00a0:  2063 7572 6c2f 372e 3337 2e31 0d0a 486f  .curl/7.37.1..Ho
    0x00b0:  731  st:.o.XXX.a
    0x00c0:  743  t.olz.local.XXX
    0x00d0:  630 0d0a  XXXXX.net:8180..
    0x00e0:  4163 6365 7074 3a20 2a2f 2a0d 0a0d 0a    Accept:.*/*....


--
---------------------------------------------------
DI (FH) Robert Bartl
EDV Bartl
Josef Krainer Strasse 24, 8141 Unterpremstätten
T: +43 (650) 8806806
F: +43 (720) 502842
[email protected]
---------------------------------------------------

Reply via email to