cURL / Mailing Lists / curl-library / Single Mail

curl-library

AW: FTP Error 425

From: André Ogrodowski <ogrodowski_at_melag.de>
Date: Mon, 9 Mar 2015 12:14:44 +0000

It seem to be the FTP- Server. With another Server it runs.

Thank for your support.

-----Ursprüngliche Nachricht-----
Von: curl-library [mailto:curl-library-bounces_at_cool.haxx.se] Im Auftrag von Patrick Monnerat
Gesendet: Montag, 9. März 2015 11:39
An: libcurl development
Betreff: RE: FTP Error 425

 
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

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-03-09