curl-library
Re: Problem downloading using text transfer mode
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Tue, 24 Jun 2008 07:23:03 -0700
Date: Tue, 24 Jun 2008 07:23:03 -0700
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 movedReceived on 2008-06-24