we encounter some weird behavior with our web application. Some POST requests do not have any http website when they should. the content length is 0. There are no message parameters. We tracked network traffic on our balancer, and we see that we are not receiving any request with some of our POST requests.
All broken POST requests have one thing in common that they come through a proxy server.
We already found this question on SO: Why is "Content-Length: 0" in POST requests?
Now we are using the javascript escape code routine, and that helps a bit. It seems that the error rate is falling. But we still have POST requests without data, which should never happen in our webapp. These requests do not come from hackers or the like.
Often we saw webwasher as a proxy. But most of the time we don’t see which proxy server is being used.
In this PDF we saw a comment about missing POST options using webwasher
WebWasher - Guide to Transparent Authentication
Some bugs
Please note that when setting up transparent authentication, some errors must be considered:
POST requests will fail if the ICAP server sends a redirect to the authentication server. However, this only affects the display update, since the request was successful for the browser and the POST body will not be sent again after the final redirect.
We would like to know if there is any workaround other than using only GET instead of POST. We would also be here if other sites had problems with missing POST data and what conclusion they made.
Are there any other reasons why POST data is not sent?
Janning
source share