Connecting Tech Pros Worldwide Forums | Help | Site Map

File download via https using vb.net or c#

Newbie
 
Join Date: May 2007
Posts: 1
#1: May 30 '07
I would like to upload and download text files from an https website. How can I do this? I can accomplish this with FTP and HTTP, but I need to do it with HTTPS! Can a webrequest object do this using c# or vb.net

Member
 
Join Date: Feb 2007
Posts: 79
#2: May 30 '07

re: File download via https using vb.net or c#


Quote:

Originally Posted by syntel123

I would like to upload and download text files from an https website. How can I do this? I can accomplish this with FTP and HTTP, but I need to do it with HTTPS! Can a webrequest object do this using c# or vb.net

If the https site requires certificate-based authentication, you'll need to provider your client certificate together with your webrequest.
Newbie
 
Join Date: Feb 2008
Posts: 1
#3: Feb 29 '08

re: File download via https using vb.net or c#


I try to download pdf files from an https website. How can I do this? I can accomplish this with HTTP, but I need to do it with HTTPS!
I try with webrequest object do this using c# or vb.net but send the error
The underlying connection was closed: An unexpected error occurred on a sendthank
Newbie
 
Join Date: Mar 2008
Posts: 25
#4: Nov 21 '08

re: File download via https using vb.net or c#


Hey im trying to do the same thing. Can you please give some code snippet that shows to create the HTTP Request to include the client certificate?

currently the file cannot be uploaded but get the response that user is logged in. i dont know how the file should be sent using the client certificate on the HTTPS.
Please Comment.
Thanks!
Reply


Similar .NET Framework bytes