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: Re: Why CURLOPT_TRANSFERTEXT doesn't work while downloading file in FTP :(???

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

On Fri, Dec 12, 2008 at 02:25:57PM +0700, Ngo Hoa Lan Phuong wrote:
> Yeah, I'm sure libcurl is sending Type A, I'm using a DebugFunction and it
> prints out that TYPE = A.
> Besides, I downloaded a text file in Unix format and I received a file in
> Window format (newline = CRLF)
> The file's opened in binary mode and I don't use a proxy. Using
> CURLOPT_PROXY_TRANSFER_MODE don't have any effect in my case.

Are you downloading a directory listing by any chance? Those are done in
ASCII mode.

> You said about appending ;type=B to the URL, but how to set it through a
> option? I can't find any document about it :(

Append it to the URL means just that: ftp://www.example.com/file;type=I
(there was a typo in my earlier message--I meant ;type=I for binary mode).

If you still can't get it going, you'll be better off showing your code
and log output.

>>> 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