cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP of data from an Z/OS system brings ^M at the end of each line

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Tue, 27 Sep 2005 13:15:29 +0200 (CEST)

On Mon, 26 Sep 2005, Lisa M Saichompoo wrote:

> When using curl in ASCII mode to bring down files, from a Z/OS server, we
> found a carriage return is marked by ^M and appears at every line in the
> files. If we use plain ftp to bring the same data down the carriage return
> does not appear. Is there a way to eliminate the carriage return when using
> curl ftp?

Nope. This is a known flaw in how curl does FTP ASCII transfers. See item #21
in the list of known bugs:

         http://curl.haxx.se/docs/knownbugs.html

The only real fix is to patch the code to do right.

Sorry.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2005-09-27