cURL / Mailing Lists / curl-library / Single Mail

curl-library

Download ascii file with FTP client Solaris and other server (aix, hpux, vms, True64unix)

From: <christophe.legry_at_orsyp.com>
Date: Thu, 10 Mar 2005 17:16:29 +0100

When y download an ascii file with solaris client and server Unix (aix, hpux, true64unix) or Open Vms, a CR character is added at each end of line.
Upload is correct and the same test with Win32 client is correct.
 
Settings use are :
      curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, FALSE);
      curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, FALSE);
      curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, TRUE);
      curl_easy_setopt(curl, CURLOPT_TIMEOUT, vl_options.timeout);
      curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, vl_options.timeout);
      curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, vl_options.buffer_size);
      curl_easy_setopt(curl, CURLOPT_URL, vl_cmd_source);
      curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, ftpfile_write);
      curl_easy_setopt(curl, CURLOPT_WRITEDATA, &vl_ftpfile);
      curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, &vl_ftpfile);
      curl_easy_setopt(curl, CURLOPT_CRLF, FALSE);

 
Thanks for yor help
 
 
 
Received on 2005-03-10