curl-library
Re: FTP Quote command one fails, entire operation aborted
Date: Mon, 24 Apr 2017 06:18:49 +0200
> 23 apr. 2017 kl. 23:36 skrev Daniel Stenberg <daniel_at_haxx.se>:
>
>> On Sun, 23 Apr 2017, Jan Östlund wrote:
>>
>> Today I discovered this in the docs, after lot of debugging my FTP-commands: https://curl.haxx.se/docs/manpage.html#-Q
>>
>>> 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.
Whoops, embarrassed!! Spent several hours trying to figur out what going on...sometimes it's just a new pair of fresh eyes needed. Sorry, but I appreciate that you pointed this out this.
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2017-04-24