curl-users
Re: ASCII transfers.... (FTP)
Date: Mon, 9 Oct 2000 13:13:27 +0200 (MET DST)
On Mon, 9 Oct 2000 Nico.Baggus_at_mail.ing.nl wrote:
> cURL v7.3 with SSL for Win32 seems to ignore ascii transfers for download
> from FTP: -B of --user-ascii have the same result, i.e. Image Transfers.
> A log showing this is added to this message.
>
> The remote FTP host is a VMS system. The transfer works with a normal FTP
> client.
This problem seems to have been around a while. I suspect this was a mistake
when I took libcurl to the new v7 design. This is a very simple change, so
for you who _can_ compile a new curl, do this:
diff -u -r1.24 ftp.c
--- ftp.c 2000/09/25 22:15:28 1.24
+++ ftp.c 2000/10/09 11:06:57
@@ -1178,7 +1182,7 @@
else {
/* Set type to binary (unless specified ASCII) */
ftpsendf(data->firstsocket, conn, "TYPE %s",
- (data->bits.ftp_list_only)?"A":"I");
+ (data->bits.ftp_ascii)?"A":"I");
nread = GetLastResponse(data->firstsocket, buf, conn);
if(nread < 0)
Thanks for reporting!
-- Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/Received on 2000-10-09