M
Mark
Hi, I have a web site that returns a 401 (access denied) if the login
details are incorrect. WebRequest.GetResponse correctly throws this
exception and I handle it, so no problems there. However, the web site
also provides additional information with the 401 (e.g. "another
administrator is currently logged in", or "password is incorrect but
user name is correct" and so on). However, because
WebRequest.GetResponse has already thrown, the response stream is null.
Is there a way to access the response even if an exception has been
thrown? (Apart from a raw TCP connection on port 80, that is!) I've
looked at the exception instance's Response property to no avail.
TIA
Mark
details are incorrect. WebRequest.GetResponse correctly throws this
exception and I handle it, so no problems there. However, the web site
also provides additional information with the 401 (e.g. "another
administrator is currently logged in", or "password is incorrect but
user name is correct" and so on). However, because
WebRequest.GetResponse has already thrown, the response stream is null.
Is there a way to access the response even if an exception has been
thrown? (Apart from a raw TCP connection on port 80, that is!) I've
looked at the exception instance's Response property to no avail.
TIA
Mark