cURL / Mailing Lists / curl-library / Single Mail

curl-library

FTP vs HTTP - CURLOPT_TRANSFERTEXT

From: Tom <tomt_at_adslweb.co.uk>
Date: Wed, 20 Jul 2011 09:43:41 +0100

Hi
Using libcurl to download text files from a linux server.

If I do this using FTP all lines within the files have a carriage
return character ( chr(13) ) at the end.
If I enable CURLOPT_TRANSFERTEXT then the carriage return character is
removed and the file is fine.

My problem is I need to use HTTP, not Ftp.
Downloading the same files using HTTP I get the carriage return
character at the end of each line.

Is there an option similar to CURLOPT_TRANSFERTEXT that will work for
HTTP ??

Many Thanks

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-07-20