cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Reg: FTP file Upload, default and binary mode

From: Michael Wood <esiotrot_at_gmail.com>
Date: Sun, 29 Dec 2013 16:28:22 +0200

On 29 Dec 2013 12:33 AM, "Daniel Stenberg" <daniel_at_haxx.se> wrote:
>
> On Fri, 27 Dec 2013, vishnu kumar wrote:
>
>> I am doing a ftp upload from the linux machine to a windows FTP
server. I read the documentation CURLOPT_TRANSFERTEXT. In that it says
default mode is binary, but when i set curlopt_transfertext as false then
only its working correctly in binary mode.
>
>
> It is a known flaw.
>
> See docs/KNOWN_BUGS #21: http://curl.haxx.se/docs/knownbugs.html
>
> I'll be happy to receive patches to improve this - but given how long
we've had this lack of function my guess is that the amount of people who
truly care about proper FTP ASCII support is diminishingly small.

If I understand the question correctly he wants binary mode but found that
he had to set CURLOPT_TRANSFERTEXT to "false" despite the documentation
saying that binary mode was the default.

So it does not seem to have anything to do with bug 21. Of course I could
have misunderstood the question because it was not explicit and I think
open to misinterpretation.

-- 
Michael Wood

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-12-29