HttpWebRequest question

  • Thread starter Thread starter EMonaco
  • Start date Start date
E

EMonaco

All,

How can I determine at runtime if a URL I'm going to requires a client
cert. The only thing I am able to get is the 403 Forbidden?


Erin
 
You can take this approach:
make the call with no cert
if rejected (Forbidden), add the cert and re-attempt the WebRequest

At the HTTP layer, I believe there is no guaranteed way of interrogating
..the server to determine whether client certs are required.
 
Back
Top