Fix IOSNet POST request to close the stream and set content length correctly.