FTP的LIST命令

visiond visiond 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我用Winsock连上FTP服务器,然后传送:LIST命令,结果总返回:425 Can't open data connection.

我查了MSDN,其中说:When an FTP client passes a command to an FTP server and the client is in active mode, the client also passes a port on which it listens for the response from the server. If the client is sending a command that does not require a data port (such as the syst command), the client does not set up a data port. The ls command, also called the list command, requires a data port to return the data. If the server is expecting a data port from the client, and the server does not receive a data port, the server generates the 425 error.

但是并不有给出解决方案,我试着先传送PASV命令,但结果还是报425错。

为什么??
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
visiond
VC/MFC 16,550 成员 421,606 内容