cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: FTP Error 425

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

 
André Ogrodowski wrote:

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

So it seems the data connection is established.

>> TYPE I
>< 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: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-09