Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

how to download and upload file from or to https://ftp.net4india.com/ using c#?

I have got it of simple ftp, upload and download file code but it's not getting to me for https://ftp.net4india.com/.

Please help me, how to upload and download file from or to https:// proxy using C#?

Thanks in Advance.

Ankit Agarwal
Software Engineer
Posted
Updated 11-May-14 20:43pm
v2
Comments
DamithSL 12-May-14 2:17am    
update question with your current code
Bernhard Hiller 12-May-14 2:22am    
Does that server require authentication?
And: what do you mean with "simple ftp"? From the wording of your question, I doubt that you understand the differences between ftp, http, https.
And the word "proxy" appears somehow out of nowhere, what do you mean with that?

1 solution

check An FTP secure client library for C#[^]

if you not using any other library. when you create request set below properties and credentials
C#
FtpWebRequest request = (FtpWebRequest)WebRequest.Create(serverUri);
request.EnableSsl = true;
request.UsePassive = true;
request.UseBinary = true;
request.KeepAlive = true;
request.Credentials = new NetworkCredential(_userName, _password); 
 
Share this answer
 
v2
Comments
[no name] 12-May-14 2:35am    
I need a https://ftp.abc.com code,
my ftp it's not a simple ftp.
DamithSL 12-May-14 2:41am    
yes I know that, that's why I have post that link. haven't you read that article yet?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900