第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

使用FtpWebRequest輸出日志

使用FtpWebRequest輸出日志

德瑪西亞99 2019-06-14 17:00:04
使用FtpWebRequest輸出日志我想知道我的FTP客戶端是否可以使用FtpWebRequest.就像這樣:[R] USER xxx [R] 331 Please specify the password. [R] PASS (hidden) [R] 230 Login successful. [R] SYST [R] 215 UNIX Type: L8 [R] FEAT [R] 211-Features: [R]  EPRT [R]  EPSV [R]  MDTM [R]  PASV [R]  REST STREAM [R]  SIZE [R]  TVFS [R] 211 End [R] PWD [R] 257 "/" [R] CWD / [R] 250 Directory successfully changed. [R] PWD [R] 257 "/" [R] TYPE A [R] 200 Switching to ASCII mode. [R] PASV [R] 227 Entering Passive Mode (10,232,201,81,141,175) [R] Opening data connection IP: 10.232.201.81 PORT: 36271 [R] LIST -al [R] 150 Here comes the directory listing. [R] 226 Directory send OK.例如,當(dāng)連接.我的當(dāng)前代碼只執(zhí)行以下操作:// Get the object used to communicate with the server.FtpWebRequest request = (FtpWebRequest)WebRequest.Create(string.Format("ftp://{0}", addrEndPoint));request.Method = WebRequestMethods.Ftp.ListDirectoryDetails;request.Credentials = new NetworkCredential(_currentConnection.Username, _currentConnection.Password);FtpWebResponse response = (FtpWebResponse)request.GetResponse();Stream responseStream = response.GetResponseStream();StreamReader readStream = new StreamReader(responseStream, System.Text.Encoding.UTF8);if (readStream != null){    Console.WriteLine(readStream.ReadToEnd());}
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 621 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號