curl-users
Re: Extra character in a downloaded file
From: Michael Shuler <michael_at_unixtx.com>
Date: Mon, 19 Jul 2004 12:06:25 -0500
Date: Mon, 19 Jul 2004 12:06:25 -0500
Hoog, Carl wrote:
> I'm a new CURL user. I've been able to connect to an https server and download a file successfully to my UNIX box. My problem is that each line in the file has a ^M character at the end. What causes this extra character? Can I download differently so that I don't get it or will I need to strip it off after I have the file?
Most *NIX variants include a utility for converting dos files to
standard unix files. You could run the utility on the file after you
grab it:
curl <URL/file.html> ; dos2unix file.html
Kind Regards,
Michael Shuler
Received on 2004-07-19