Be sure headers are created
Make error handling better, add keep-alive, and timeout for requests