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.
 
Dino,

And that is a bummer, because IE can tell you if a client cert is
needed...


Erin.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top