cURL / Mailing Lists / curl-users / Single Mail

curl-users

Error 550 with curl sftp download attempt

From: Preston Allen <Preston.Allen_at_evrazincna.com>
Date: Mon, 14 Mar 2011 17:36:06 +0000

Hello all-

This is my first posting. Sorry if I don't get this quite right.

In short, I am trying to download via ftp ssl protocol, and do a cwd and download from "newdir". However, I'm getting a 550 error. I think the server I am trying to connect to does not like the SIZE command to transfer the file? Thanks for any help or improvements to the script you can provide. The CWD command seems to work properly. I am trying to learn about curl, ftp, and secure ftp all at the same time, and it has been a bit of a challenge for me. I have had success in the past with curl and I am hoping to continue to use curl for this new process/script.

Thanks,
Preston.

VERSION INFO:
curl 7.15.3 (hppa2.0w-hp-hpux11.11) libcurl/7.15.3 OpenSSL/0.9.7i zlib/1.2.3
Protocols: tftp ftp telnet dict ldap http file https ftps
Features: IPv6 Largefile NTLM SSL libz

COMMAND:
curl --verbose --disable-epsv --retry 6 -o /tmp/d100.b468199.x320 --ftp-ssl -k --ftp-method singlecwd --remote-name ftp://000.000.000.000:20021//newdir/d100.b468199.x320 --user username:userpass

OUTPUT:
About to connect() to 000.000.000.000 port 20021
* Trying 000.000.000.000... connected
* Connected to 000.000.000.000 (000.000.000.000) port 20021
< 220 Welcome to REMOVED. Time = 12:18:59
> AUTH SSL
< 234 AUTH TLS-P/SSL OK.
* successfully set certificate verify locations:
* CAfile: /opt/iexpress/curl/share/curl/curl-ca-bundle.crt
  CApath: none
* SSLv2, Client hello (1):
SSLv3, TLS handshake, Server hello (2):
SSLv3, TLS handshake, CERT (11):
SSLv3, TLS handshake, Server finished (14):
SSLv3, TLS handshake, Client key exchange (16):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSLv3, TLS change cipher, Client hello (1):
SSLv3, TLS handshake, Finished (20):
SSL connection using DES-CBC3-SHA
* Server certificate:
* subject: /C=US/ST=Minnesota/L=St. Paul/O=REMOVED/OU=Data Distribution Services ceweba1u FTPS/CN=REMOVED.DOT.COM
* start date: 2009-04-21 00:00:00 GMT
* expire date: 2012-04-20 23:59:59 GMT
* common name: REMOVED.DOT.COM (does not match '000.000.000.000')
* issuer: /C=US/O=VeriSign, Inc./OU=VeriSign Trust Network/OU=Terms of use at https://www.verisign.com/rpa (c)05/CN=VeriSign Class 3 Secure Server CA
* SSL certificate verify result: unable to get local issuer certificate (20), continuing anyway.
> USER username
< 331 Password required for username.
> PASS userpass
< 230 Connect:Enterprise UNIX login ok, access restrictions apply.
> PBSZ 0
< 200 PBSZ 0 OK.
> PROT P
< 200 PROT P OK, data channel will be secured.
> PWD
< 257 "/currentdir" is current directory.
* Entry path is '/currentdir'
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (000,000,000,000,00,0)
* Trying 000.000.000.000... connected
* Connecting to 000.000.000.000 (000.000.000.000) port 21000
> TYPE I
< 200 Type set to I.
> SIZE /newdir/d100.b468199.x320
< 550 Operation is not supported under Connect:Enterprise FTP server.
> RETR /newdir/d100.b468199.x320
< 550 *** ERROR *** NO BATCHES FOR TRANSMISSION
* RETR response: 550
  % Total % Received % Xferd Average Speed Time Time Time Current
                                 Dload Upload Total Spent Left Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0* Connection #0 to host 170.135.128.149 left intact

curl: (19) RETR response: 550

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-14