C# FTP 550 error

前端 未结 6 849
抹茶落季
抹茶落季 2021-01-20 03:31

I\'m trying to programatically download a file in C# via FTP, here is the relevant code (obviously with fake credntials and URI):

try
{
    var request = Ftp         


        
6条回答
  •  误落风尘
    2021-01-20 04:16

    The Connection to my FTP-Server shows different behaviors, depending from where I try to connect. In my local Network it works with just one slash after the domain-part, e.g. ftp://test.test.com/folder/myfile.txt

    But on a remote machine I have to use two slashes like ftp://test.test.com//folder/myfile.txt

    The two-slashes-approach works in both cases.

提交回复
热议问题