I had the same problem. I found a solution: specifying the "Content-Length" header as I explain here. So, in JAVA, I just needed to add this line to make it work:
I had the same problem. I found a solution: specifying the "Content-Length" header as I explain here. So, in JAVA, I just needed to add this line to make it work: