Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1k views
in .NET FTP by (120 points)
I am using resumenextdownload function but it is not working. It is starting from the offset but it again copy the entire bytes.

I have one file call abc which has 1500bytes so for the firsttime suppose it copies 1400bytes after resume it starts from 1401bytes and append the again 1500bytes by mean the total size of file is now 1400 + 1500 bytes.

I am getting the following error in log file.

FTPConnection.1 ---> REST 97011160
DEBUG [FTPControlSocket] 27 Oct 2016 20:26:16.867 : FTPConnection.1 500 'RE*T 97011160': command not understood.
DEBUG [FTPControlSocket] 27 Oct 2016 20:26:16.867 : FTPConnection.1 Expected reply codes = [350] (strict=False)
WARN [FTPClient] 27 Oct 2016 20:26:16.872 : FTPConnection.1 REST failed - resume will not be used ('RE*T 97011160': command not understood. (code=500))

 

Here 97011160 is offset byte.

Please help on this.

1 Answer

0 votes
by (162k points)
It looks like REST isn't supported on your server, so you won't be able to resume.
by (2.7k points)
Some early version of IIS don't support it.  For others I think it might be an option.
by (120 points)
I am working on Windows Application without IIS.
by (162k points)
Whatever FTP server you are connecting to, it looks like it doesn't support resuming.
by (120 points)
Is there any function available within enterprisedt to check resume is being supported by server or not?
by (162k points)
No, unfortunately not. It's very rare that it isn't supported (perhaps it is disabled deliberately).
by (120 points)
As per our Server admin team our FTP hosted on IIS 7.0 server and there is no such restriction. Can you help is there anything specific setting which block resume support in IIS?
by (162k points)
There's another possibility. The server error is "'RE*T 97011160': command not understood."

I'm not sure why you are seeing RE*T instead of REST. That suggests to me that it might be that a firewall or router has modified the REST command before it gets to the server. The IIS logs will tell you if RE*T was received rather than REST (which is the legitimate command).

Categories

...