I am writing a CTP client. I am not making any changes to the server program.
The amount of data from the file on the specific server I have
Assume that I have a file and I want to read the previous 100 bytes from the file. I do not want to read the full file
I have been able to get the whole file using the RETR filename , but I could not find any way to read bytes in specific quantities.
Is there a way to do this for a standard FTP server?
Is there a way to do this standard FTP server?
No, you can tell the server to the situation where it should start with the REST
(restart) command, but you can not tell how much data Should send. After receiving the data you want, you can turn off the data channel. The FTP server would probably complain about it because it had received a RST (writing against a closed socket), but in most cases this problem should not be created.
No comments:
Post a Comment