cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl FTP - setting transfer type

From: Alla Bogolubov <abogolub_at_opentext.com>
Date: Thu, 27 Mar 2008 11:58:00 -0400

 

I created a test example that emulates FTP mget using libcurl easy
interface.

 

The application transfers the files successfully. However, I was unable
to set transfer type to A (ascii). When I set transfer type to A after
NLST command and before the second call to curl_easy_perform() the
application enters an endless loop setting TYPE A:

 

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

< 200 Type set to A.

> TYPE A

 

 

Please see my app attached. Please let me know how to set transfer type
to A.

 

Thank you,

Alla

 

 

 

Received on 2008-03-27