estately/rets — pull request #20 by tdtran (2012-07-27 22:18:51+00:00)
Title: Fix error response leakage

(This branch is based on commit 96764ae not at the tip of estately/rets master, the recent commits there probably should be reverted)

The most substantial change is correct handling of http digest auth. The original code sort of piggy back on login and handle digest auth only there. RETS auth is http digest. The login method is just a starting point of a session, to discover capabilities of the server. The client then would moves on to fetch metadata. Both capabilites and metadata can be cached. It's unclear to me what the server needs RETS-Session-ID cookie for, perhaps as a way to rate limit client request.

Once this in, we don't need to call `client.login` for the "cached" client at all.