Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4756

Bad request returned for unencoded characters

$
0
0

I recently moved a domain into HAProxy. Most of the HTTP requests go through fine but some requests that have un-encoded characters in their URL are thrown with 400 Bad Request
an example of such a URL is
http://www.domain.com/push.asp?Message=א
Note that the Message parameter value has a Hebrew letter as a value but it is not encoded. if I change the Hebrew letter to any English letter the request is passed to the backend without any issue. but this request is rejected as Bad Request.
Since I know my webserver (IIS in this case) can handle the request, is there a way to tell HAProxy to skip validation of the HTTP request?
My frontend in this case is working in HTTP mode

I should also note that testing this “bad” URL from a web browser works as the browser encodes the URL. only when the URL contains 1 byte on the wire for this letter (0xE0 in this case) the request is rejected

Thanks

Update: I found the “option accept-invalid-http-request” option and was wondering if there is some way to incorporate that with an ACL?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4756

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>