I suppose the easiest way would be to have a backend (e.g. PHP) script located inside the authenticated realm that echoes back the credentials to you? Haven't tested... just an idea.