cURL / Mailing Lists / curl-library / Single Mail


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

From: Dan Fandrich <>
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:;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

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-12-12