Closed
Description
Hi!
Found some FTP servers which refuse to give SIZE response in ASCII mode.
One such is proftpd, their reasoning is here: http://www.proftpd.org/docs/howto/ASCII.html
Now with the change in 7ea2e1d
it is not possible to download in ascii mode from these servers as the download fails on the 550 response to the SIZE command.
Prior to that the download continues with "unkown" size.
Could you please fix this, or eg add an option so we allow ASCII mode SIZE to fail?
I did this
FTP ASCII mode download from proftpd fails.
I expected the following
Download succeeds.
curl/libcurl version
7.74
operating system
Linux.
Thanks!
Activity
bagder commentedon Feb 4, 2021
Does the server really return a 550 in that situation? To me that seems... wrong.
awesomenode commentedon Feb 4, 2021
Yep it seems buggy to me also. But these are already out there. :(
ftp: avoid SIZE when asking for a TYPE A file
bagder commentedon Feb 4, 2021
I went with skipping
SIZE
completely forTYPE A
transfers. curl can't use the returned size anyway since servers tend to not send back the actual (converted) size for it so avoiding it seems like the better choice!awesomenode commentedon Feb 4, 2021
Excellent, thank you Daniel!