cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: Why CURLOPT_TRANSFERTEXT doesn't work while downloading file in FTP :(???

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 11 Dec 2008 22:52:22 -0800

On Fri, Dec 12, 2008 at 01:32:07PM +0700, Ngo Hoa Lan Phuong wrote:
> I'm trying to download a file from a FTP server in binary mode.
> I set CULROPT_TRANSFERTEXT = 0 and use option CURLOPT_WRITEFUNCTION to write
> the data to the FILE *.
> I even tried to use CURLOPT_PROXY_TRANSFER_MODE before setting
> CURLOPT_TRANSFERTEXT (however I didn't using proxy for ftp transfer)
> But anyway it came out that file's downloaded in ASCII mode. (TYPE = A)
> Do you have any idea why this option doesn't work :(??

Are you sure libcurl is sending TYPE A? Or did you forget to open the FILE*
file in binary mode? Are you using a proxy? If so, I believe with recent
version of libcurl you need to append ;type=B on to the URL.

>>> Dan

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

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET