cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Problems with CURLOPT_CRLF

From: Carlos Alloatti <calloatti_at_gmail.com>
Date: Mon, 6 Oct 2008 22:54:58 -0300

>>
>> It seems CURLOPT_CRLF has no effect, the downloaded file only has LFs, no CRLFs.
>>
>> Any comments?
>
> The remote server has to support CURLOPT_TRANSFERTEXT for this to work
> on downloads, and it doesn't seem to be widely supported. It looks like
> CURLOPT_CRLF actually only works on uploads. Maybe that could be documented
> better.
>
>>>> Dan
> --

My idea was that CURLOPT_TRANSFERTEXT meant TYPE A for FTP servers.
Also, there is no mention of this in the docs, but I assumed, and it
seems you are doing it too, that for CURLOPT_CRLF to work,
CURLOPT_TRANSFERTEXT must be set to 1?

But if you say that it only works for uploads, I can't use it as I
intended. Thanks.

-- 
Carlos Alloatti
Received on 2008-10-07