Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Does support for FTP growing files work in libcurl?
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 16 Oct 2022 00:28:52 +0200 (CEST)
On Thu, 13 Oct 2022, Robert Sumner via curl-library wrote:
> I have been trying to get libcurl FTP to work to a tailmode supporting FTP
> server with a growing file, but have not managed to get the full file back.
...
> Am I missing something here or is it a problem?
The problem is the FTP protocol:
As the data is delivered in a separate connection and the only way to know
that the entire file has been delivered and has not been prematurely cut off,
is to verify that the final file size is indeed the same as originally stated.
To support downloading files without knowing the exact size ahead of time then
unfortunately also equals not knowing if curl indeed got the entire file or
not.
Date: Sun, 16 Oct 2022 00:28:52 +0200 (CEST)
On Thu, 13 Oct 2022, Robert Sumner via curl-library wrote:
> I have been trying to get libcurl FTP to work to a tailmode supporting FTP
> server with a growing file, but have not managed to get the full file back.
...
> Am I missing something here or is it a problem?
The problem is the FTP protocol:
As the data is delivered in a separate connection and the only way to know
that the entire file has been delivered and has not been prematurely cut off,
is to verify that the final file size is indeed the same as originally stated.
To support downloading files without knowing the exact size ahead of time then
unfortunately also equals not knowing if curl indeed got the entire file or
not.
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2022-10-16