Please check the HTTPConnection with the following code:
if (requestContentLength > 0)
{
// Start reading the request body
if (requestContentLength == -1)
{
if requestContentLength > 0 and then requestContentLength will never equal to -1, this should be an issue and should cause the chunked transfer problems, thanks.
Please check the HTTPConnection with the following code:
if (requestContentLength > 0) { // Start reading the request body if (requestContentLength == -1) {
if requestContentLength > 0 and then requestContentLength will never equal to -1, this should be an issue and should cause the chunked transfer problems, thanks.