Add timeout support for HTTP POST requests.