看板Programming
標 題Re: [ftp-client] 如何讀取檔案列表
發信站GICIE BBS (Thu Jun 8 06:19:30 2006)
轉信站ptt!ctu-reader!ctu-gate!news.nctu!news.ntu!news.ee.ttu!netnews.csie.nc
※ 引述《[email protected] ( )》之銘言:
: : sockTool.sendEndCRLF(s,"LIST");
: FTP 送出指令後面要加 \r\n
這個包在sendEndCRLF method之中了 :)
: : // 這裡不知要不要送RETR @@? rfc看不太懂xd
: : sockTool.sendEndCRLF(s,"RETR ASCII");
: : // sockTool.recvDump(s);
: 送 LIST 後要做一個 data port 的 connection
: 然後再從這個 port 讀回傳的東西
: 希望沒有說錯什麼 有錯的話請大力指正 orz
可是data channel傳回的是
220 (vsFTPd 1.1.3)
俺不知是那做錯了>"<
--
※ Post by qrtt1 from 163.26.34.105 ...
--
/ Origin: 南師資教小站
─ ● ─ 140.113.216.75
/ gicie.twbbs.org