Add timeout for POST requests.
Add support for request with a Content-Length.