cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 23 Jun 2008 09:08:02 -0700

On Mon, Jun 23, 2008 at 12:36:13PM +0200, Abel Alonso wrote:
> I've got an issue downloading text files using text transfer mode. The proccess
> I did was the following:

What platform and what lib curl version?

> 1. I uploaded the file enabling these two options:
>
> CURLOPT_TRANSFERTEXT
> CURLOPT_CRLF
>
> 2. I download the file with the same options enable and I miss as characters as
> line-endings are in the file.

I don't understand the problem. What were the line ending characters in
the original file and what were they in the downloaded file?

> 3. I download the file with those options disabled and the file is downloaded
> properly.

What does "properly" mean in this case? It will depend on the platform
you're running on.

> I don't know what I have to do to download files properly in text mode, any
> suggestion or help?
>
> Thanks!!

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-06-23