Update POST handling to close the stream a
Merge pull request #279 from kevglass/master

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