cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTPS upload problem

From: Hays, Randy L. <RLHays_at_reliant.com>
Date: Thu, 23 Apr 2009 10:51:24 -0500

I'm trying to use curl to FTPS files to a specific vendor. We used the
Glub tool in the past when we were on Solaris. This tool doesn't work
on IBM so we are trying to get curl to work. I'm able to list files and
download fine. Upload does not work. Below is the trace. Any suggests
to get this working? I saw some other posts that were similar but no
solution. We are using version 7.19.4.

Thanks,
Randy

$ curl -V
curl 7.19.4 (powerpc-ibm-aix5.3.0.0) libcurl/7.19.4 OpenSSL/0.9.7d
Protocols: tftp ftp telnet dict http file https ftps
Features: IPv6 Largefile NTLM SSL
$

$ curl -k ftps://<userid>:<pwd>@ftp.lite-uptexas.com/input/test.log -T
test.log --trace-ascii -
== Info: About to connect() to ftp.lite-uptexas.com port 990 (#0)
== Info: Trying 206.192.113.55... == Info: connected
== Info: Connected to ftp.lite-uptexas.com (206.192.113.55) port 990
(#0)
== Info: SSL: couldn't set callback!
== Info: SSL connection using DES-CBC3-SHA
== Info: Server certificate:
== Info: subject: C=USA, ST=NJ, L=Whippany, O=Solix Inc,
OU=Secure FTP Wrapper, CN=ftp.lite-uptexas.com
== Info: start date: 2008-08-01 16:35:03 GMT
== Info: expire date: 2011-08-01 16:35:03 GMT
== Info: common name: ftp.lite-uptexas.com (matched)
== Info: issuer: C=USA, ST=NJ, L=Whippany, O=Solix Inc,
OU=Secure FTP Wrapper, CN=ftp.lite-uptexas.com
== Info: SSL certificate verify result: self signed certificate
(18), continuing anyway.
<= Recv header, 34 bytes (0x22)
0000: 220-"128 Bit Secure FTP Wrapper"
<= Recv header, 50 bytes (0x32)
0000: 220 nsisql1 Microsoft FTP Service (Version 5.0).
=> Send header, 19 bytes (0x13)
0000: USER <userid>
<= Recv header, 41 bytes (0x29)
0000: 331 Password required for <userid>.
=> Send header, 15 bytes (0xf)
0000: PASS <pwd>
<= Recv header, 34 bytes (0x22)
0000: 230 User <userid> logged in.
=> Send header, 8 bytes (0x8)
0000: PBSZ 0
<= Recv header, 55 bytes (0x37)
0000: 200 PBSZ Command OK. Protection buffer size set to 0.
=> Send header, 8 bytes (0x8)
0000: PROT P
<= Recv header, 53 bytes (0x35)
0000: 200 PROT Command OK. Using Private data connection.
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 43 bytes (0x2b)
0000: 257 "/<userid>" is current directory.
== Info: Entry path is '/<userid>'
=> Send header, 11 bytes (0xb)
0000: CWD input
<= Recv header, 29 bytes (0x1d)
0000: 250 CWD command successful.
=> Send header, 6 bytes (0x6)
0000: EPSV
== Info: Connect data stream passively
<= Recv header, 36 bytes (0x24)
0000: 500 'EPSV': command not understood
== Info: disabling EPSV usage
=> Send header, 6 bytes (0x6)
0000: PASV
<= Recv header, 51 bytes (0x33)
0000: 227 Entering Passive Mode (206,192,113,55,12,62).
== Info: Trying 206.192.113.55... == Info: connected
== Info: Connecting to 206.192.113.55 (206.192.113.55) port 3134
=> Send header, 8 bytes (0x8)
0000: TYPE I
<= Recv header, 20 bytes (0x14)
0000: 200 Type set to I.
=> Send header, 15 bytes (0xf)
0000: STOR test.log
<= Recv header, 54 bytes (0x36)
0000: 125 Data connection already open; Transfer starting.
== Info: Doing the SSL/TLS handshake on the data stream
== Info: SSL: couldn't set callback!
== Info: SSL re-using session ID
 == Info: SSL connection timeout
== Info: Uploaded unaligned file size (0 out of 11 bytes)
  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
  0 0 0 0 0 0 0 0 --:--:-- 0:04:59 --:--:--
0== Info: Closing connection #0

curl: (28) SSL connection timeout
$

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-23