cURL / Mailing Lists / curl-library / Single Mail


Re: Establish the FTP Connection and file Transfer from on location to other

From: Daniel Stenberg <>
Date: Mon, 19 Apr 2010 13:15:36 +0200 (CEST)

On Mon, 19 Apr 2010, Amol Madane wrote:

> I want to establish the FTP connection from machine A to machine B using
> LibCurl and want to transfer the file (*.txt) from B to A. After the
> successful transmission of file (*.txt) from B to A, delete the file which
> is available on Machine B.
> Please find the code that I have written for doing the same is in the
> attached file.

Please don't top-post!

How to get the file:

And to delete the file, you can change the RNFR/RNTO line to DELE in the
example that renames a file after upload:

List admin:
Received on 2010-04-19