FtpWebRequest Connecting to an AS/400

前端 未结 4 1622
一整个雨季
一整个雨季 2021-01-25 04:01

I need to download some files via ftp from an old AS/400 server. My code looks more or less like:

FtpWebRequest _request = (FtpWebRequest)WebRequest.Create(\"ft         


        
4条回答
  •  感动是毒
    2021-01-25 04:49

    This is an aggregate answer from the ones previously provided, but I was able to get this working by using the following structure:

    ftp://[HostName]/%2F/[directory]/[subdirectory]/[filename].csv

    The '%2F' was required and serves as a separator between the host name and the path.

提交回复
热议问题