We have a web based application in production built using django. It is deployed on nginx proxied with apache which handles the django app via WSGI. OS is Ubuntu.
In addition to the web based front-end, we recently developed a J2ME client for uploading files via mobile phone. The J2ME transfers the file with Transfer-Encoding set as "Chunked" and content length set to zero; that is the standard way for the J2ME framework and apparently it cannot be changed.
The problem is that neither nginx, nor apache allow zero content length chunked data and give back HTTP 411 error response. django also seems problematic but it can be patched easily.
Few solutions on net suggest recompiling nginx and apache but I don't want to go into that. Could there be a much simpler solution?