Re-Post with updated library - some bugs fixed (esp. with non-chunked data). This version also attempts to have the server close the persistent connection immediately after the current request completes. Tests with these HTTP 1.1 vi shows that not all servers will close the connection, despite the "Connection: close" header line.