curl-users
RE: FTPS upload problem
Date: Fri, 8 May 2009 11:31:49 -0500
>-----Original Message-----
>From: curl-users-bounces_at_cool.haxx.se
[mailto:curl-users-bounces_at_cool.haxx.se] On Behalf Of >Daniel Stenberg
>Sent: Thursday, April 23, 2009 4:25 PM
>To: the curl tool
>Subject: Re: FTPS upload problem
>
>On Thu, 23 Apr 2009, Hays, Randy L. wrote:
>
>> 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.
>
>Downloads and uploads use the same concept for connecting the data
connection so this difference really is strange.
>
>> curl 7.19.4 (powerpc-ibm-aix5.3.0.0) libcurl/7.19.4 OpenSSL/0.9.7d
>
>This OpenSSL version is really old so you may have better luck with a
modern version...
OK. I upgraded to 0.9.8g
$ curl -V
curl 7.19.4 (powerpc-ibm-aix5.3.0.0) libcurl/7.19.4 OpenSSL/0.9.8g
Protocols: tftp ftp telnet dict http file https ftps
Features: IPv6 Largefile NTLM SSL
$
>> == Info: SSL re-using session ID
>
>Tried disabling session id? --no-sessionid.
I tried again adding --no-sessionid but no better results. Below is the
trace. Any other information I can provide that would be helpful?
$ curl -k ftps://<userid>:<pwd>@ftp.lite-uptexas.com/input/test.log -T
test.log --no-sessionid --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: SSLv3, TLS handshake, Client hello (1):
=> Send SSL data, 83 bytes (0x53)
0000: ...O..J.N..w00H..|..fJq.....r....^...j..(.9.8.5.......3.2./.....
0040: ...................
== Info: SSLv3, TLS handshake, Server hello (2):
<= Recv SSL data, 74 bytes (0x4a)
0000: ...F..J.W.NS..O.".XR....R...U.%......P J.W.....'l..|.'ro..QYa%Nj
0040: ...fN.%...
== Info: SSLv3, TLS handshake, CERT (11):
<= Recv SSL data, 636 bytes (0x27c)
0000: ...x..u..r0..n0.....H.;70...*.H........0~1.0...U....USA1.0...U..
0040: ..NJ1.0...U....Whippany1.0...U....Solix Inc1.0...U....Secure FTP
0080: Wrapper1.0...U....ftp.lite-uptexas.com0...080801163503Z..110801
00c0: 163503Z0~1.0...U....USA1.0...U....NJ1.0...U....Whippany1.0...U..
0100: ..Solix Inc1.0...U....Secure FTP Wrapper1.0...U....ftp.lite-upte
0140: xas.com0..0...*.H............0.......7.....hR../#y.D.9...{}V...
0180: 5.h.n~.....N.(.G..m.g|.....7Y5.....<(g......o...S%dbgG.h=,A....
01c0: *.mJ.6... .. .t...H...$n.1Le5Lu.W[.-.....0...*.H............@...
0200: ..)....\%...L..+aa.^.|.P(.D.6;....K.......{.."I.k.....N........@
0240: J<.wb7........ .q...(+$f....[.2H....N....../`...$ 2..C..EW..
== Info: SSLv3, TLS handshake, Server finished (14):
<= Recv SSL data, 4 bytes (0x4)
0000: ....
== Info: SSLv3, TLS handshake, Client key exchange (16):
=> Send SSL data, 134 bytes (0x86)
0000: ......J.`s...>.\ ..%..1zVBV....T'@....%....5c}"......D.b...>....
0040: Gz.z..?)../.nd..\_.......p...hw.?B....]..i..e..u..OJ....1..6+...
0080: ....<Q
== Info: SSLv3, TLS change cipher, Client hello (1):
=> Send SSL data, 1 bytes (0x1)
0000: .
== Info: SSLv3, TLS handshake, Finished (20):
=> Send SSL data, 16 bytes (0x10)
0000: .....p.a_.'~#_.;
== Info: SSLv3, TLS change cipher, Client hello (1):
<= Recv SSL data, 1 bytes (0x1)
0000: .
== Info: SSLv3, TLS handshake, Finished (20):
<= Recv SSL data, 16 bytes (0x10)
0000: ....{...!....qX.
== 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,15).
== Info: Trying 206.192.113.55... == Info: connected
== Info: Connecting to 206.192.113.55 (206.192.113.55) port 3087
=> 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: SSLv3, TLS handshake, Client hello (1):
=> Send SSL data, 83 bytes (0x53)
0000: ...O..J.N...4...b....P4..m......k.;.R3..(.9.8.5.......3.2./.....
0040: ...................
== 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:05:00 --:--:--
0== Info: Closing connection #0
== Info: SSLv3, TLS alert, Client hello (1):
=> Send SSL data, 2 bytes (0x2)
0000: ..
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-05-08