A more robust http client