I had the same problem. I managed to make it work by explicitly setting the Content-Length header with the proper value and the Content-Type header to empty.
Content-Length
Content-Type