继续FTP下载afther重新连接 [英] continue FTP download afther reconnect

查看:208
本文介绍了继续FTP下载afther重新连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能继续重新连接到FTP服务器后,ftp下载?

Is it possible to continue ftp download after reconnecting to ftp server?

推荐答案

是的。在协议层面,向服务器发送REST<寻找>中RETR前寻求在文件中的位置(所以如果你已经有1500字节的文件,执行REST 1500,它会开始从第1501字节发送)。

Yes. At the protocol level, send the server "REST <seek>" before RETR to seek to a position in the file (so if you already have 1500 bytes of the file, execute "REST 1500" and it will start sending from the 1501st byte).

下面是一个例子:

TYPE I
200 Switching to Binary mode.
PASV
227 Entering Passive Mode (140,186,70,20,223,87)
REST 800
350 Restart position accepted (800).
RETR welcome.msg
150 Opening BINARY mode data connection for welcome.msg (954 bytes).
226 File send OK.

这篇关于继续FTP下载afther重新连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆