curl / Mailing Lists / curl-library / Single Mail
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: FTP with CURLOPT_NOBODY different behavior when performingonnon-existing files #5953

From: Lukas Friembichler via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 15 Dec 2020 18:51:16 +0100

Thanks for your reply

> Why can't your FTP server report the size of that file? It does
> exist.

I was under the impression that this simply didn't work for directories
(like I said I'm not a FTP expert), so I thought that was a 'feature'..

If I look at https://tools.ietf.org/html/rfc3659#section-4.2 it says

> The presence of the 550 error response to a SIZE command MUST NOT be
> taken by the client as an indication that the file cannot be
> transferred in the current MODE and TYPE.

and the '* The file does not exist' message actually (after browsing the
source a bit) originates in libCURL and not from the FTP (as a response
to the 550 error code..)

To be honest I'm not even sure why the SIZE command is issued at all
(I'm not interested in that..)

Lukas
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.se/mail/etiquette.html
Received on 2020-12-15