So would you suggest that I just create my own wrapper class for handling https? If so could you give me a quick example, I think have to get the byte[] then convert it into a file.
Thanks
Main Topics
Browse All TopicsDoes the DownloadFile method in the WebClient class support https protocol? If so how can I double check to see the certificate?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Let's see if this is what you need...
How to send a client certificate by using the HttpWebRequest and HttpWebResponse classes in Microsoft Visual C# .NET
http://support.microsoft.c
I am not sure about creating a client certificate because all I want to do is just GET a webpage, which just happens to be a file. I actually checks all the properties of HttpWebRequest and HttpWebResponse after I made the initial connection. The request.ServicePoint has all the information you need to double check. It has the port number used (443 is usually for https), request.ServicePoint.Certi
Stream responseStream=null;
// A WebException is thrown if HTTP request fails
// Create an HttpWebRequest using WebRequest.Create (see .NET docs)!
HttpWebRequest request = (HttpWebRequest)WebRequest
request.AuthenticationLeve
// Execute the request and obtain the response stream
HttpWebResponse response = (HttpWebResponse)request.G
responseStream = response.GetResponseStream
I don't work with SSL and HttpWebRequest very much, so the details are a little fuzzy for me, so if you are getting certificates without adding them, then go with that.
Your question was about the WebClient supporting SSL, and I tried to say that I didn't think it supported it, since it was an over-simplified wrapper for an HttpWebRequest.
Business Accounts
Answer for Membership
by: TheLearnedOnePosted on 2009-10-12 at 09:04:18ID: 25552374
WebClient is a simple wrapper for an HttpWebRequest, and I don't believe that it can handle HTTPS and certificates. The HttpWebRequest has the ClientCertificates collection that you can use to pass in the certificates that you want to use.