FtpWebRequest Connecting to an AS/400

前端 未结 4 1575
一整个雨季
一整个雨季 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:59

    According to this page, fwd slash is the path separator character:

    The forward slash is the separator character for paths sent to the FTP server.

    A similar conversation over at Microsoft's forums (2005 era) indicates it's a bug in FtpWebRequest:

    Currently FtpWebRequest does not support quote and I cannot think of a way you'll be able to overide the method without exposing our code Mariya Atanasova [NCL]MSFT, Moderator, Nov 2005

    Try updating to the most recent versions or try a different library; the MS forum thread has several.

提交回复
热议问题