I think the write method (at HttpClient.h#L358) should send Content-Length setted to aSide before to finish the request.