cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problem downloading using text transfer mode

From: Abel Alonso <abelalon_at_gmail.com>
Date: Tue, 24 Jun 2008 16:32:31 +0200

Without it I have the same issue.

2008/6/24 Dan Fandrich <dan_at_coneharvesters.com>:

> On Tue, Jun 24, 2008 at 01:01:25PM +0200, Abel Alonso wrote:
> > The code I use to upload and download files:
> >
> >
> > //Download Code
> >
> > CURL *curl;
> > curl = curl_easy_init();
> >
> > curl_easy_setopt( curl, CURLOPT_FTP_USE_EPSV, 0 );
> >
> > curl_easy_setopt(curl, CURLOPT_URL,);
> >
> > curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &fileWrite);
> > curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
>
> Are you opening this file in binary mode?
>
> > curl_easy_setopt( curl, CURLOPT_TRANSFERTEXT, 1 );
> > curl_easy_setopt( curl, CURLOPT_CRLF, 1 );
>
> Hmmm, I don't think you want to set the CRLF option on a Windows system.
>
> >>> Dan
> --
> http://www.MoveAnnouncer.com The web change of address
> service
> Let webmasters know that your web site has moved
>
Received on 2008-06-24