fixing content-length, testing HTTP Basic Auth
handling request timeouts