Support for basic auth; retries