curl / Mailing Lists / curl-library / Single Mail


Re: FTP Quote command one fails, entire operation aborted

From: Daniel Stenberg <>
Date: Sun, 23 Apr 2017 23:36:47 +0200 (CEST)

On Sun, 23 Apr 2017, Jan Östlund wrote:

> Today I discovered this in the docs, after lot of debugging my FTP-commands:
>> If the server returns failure for one of the commands, the entire operation
>> will be aborted. You must send syntactically correct FTP commands as RFC
>> 959 defines to FTP servers, or one of the commands listed below to SFTP
>> servers.
> Is there no way around this or mute the error? Is this a technical limit?

I find it ironic that you point to the docs there, as the third paragraph in
that docs section gives you the answer:

   When speaking to an FTP server, prefix the command with an asterisk (*) to
   make curl continue even if the command fails as by default curl will stop at
   first failure.


Received on 2017-04-23