Adding http client code that includes timeouts.