cURL / Mailing Lists / curl-library / Single Mail


RE: FTP Error 425

From: Patrick Monnerat <>
Date: Mon, 9 Mar 2015 11:38:43 +0100

André Ogrodowski wrote:

>< 227 Entering Passive Mode (192,168,70,42,233,167)
>* Trying
>* connected
>* Connecting to ( port 59815

So it seems the data connection is established.

>< 200 Type set to TypeI

Success: see the discussion below.

>> STOR logfile.txt
>< 425 Can't open data connection.

Strange: the data connection is already open...
Maybe the "TYPE I" command between the PASV and the STOR commands closes it in the server.

What is your server software ? I suspect an incompatibility in it.

Not related to the current problem:
- The RNFR/RNTO commands will fail as currently coded since they do not have filenames arguments.
- Setting CURLOPT_PORT to 21 is redendant since it's the default ftp port. You can drop it.
- Setting CURLOPT_INFILESIZE_LARGE is also useless: by default, curl will transfer until end of file.

List admin:
Received on 2015-03-09