cURL / Mailing Lists / curl-users / Single Mail

curl-users

Empty file received at remote site

From: Martineau, Luc <Luc.Martineau_at_snclavalin.com>
Date: Thu, 1 May 2008 14:37:46 -0400

Hello,

I'm trying to use cURL 7.18.1 (ALPHA-HP-VMS) libcurl/7.18.1
OpenSSL/0.9.7e

to transfert a file via FTPS to a Glub Tech Secure FTP Wrapper v3.0.2

I'm able to connect to the remote server (see the trace section)
(I don't have access to remote server logs)

The data seems to transfert correctly. We can see it in trace file
(trace section)

I didn't include all part of data and I replaced it by *** CONFIDENTIAL
***

All lines in my file appears into the trace file.

When the transfert is finished, I have these line in trace file

== Info: FTP response timeout
== Info: control connection looks dead
== Info: Closing connection #0

At the remote site, they received an empty file.

I've tried also to use cURL on cygwin to tranfert the same file to the
same server and I've got the same behavior.

I've tried with another ftps client (windows) and the file is
transmitted with the data.

Here's the command line used :

curl --use-ascii --disable-epsv --ftp-ssl-control --crlf --ftp-pasv
--cacert cacert_pem.htm --trace-asci trace.txt --show-error
--upload-file local_file.txt -u "username:password"
ftps://remote_server:990/remote_file.txt

Here's the following I get with the trace file below. Any idea ?

  % Total % Received % Xferd Average Speed Time Time Time
Current
                                 Dload Upload Total Spent Left
Speed
101 58320 0 0 101 59292 0 960 0:01:00 0:01:01 0:00:-1
0

-- Begin trace section

== Info: About to connect() to remote_server port 990 (#0)
== Info: Trying remote_ip... == Info: connected
== Info: Connected to remote_server (remote_ip) port 990 (#0)
== Info: libcurl is now using a weak random seed!
== Info: successfully set certificate verify locations:
== Info: CAfile: cacert_pem.htm
  CApath: none
== Info: SSLv2, Client hello (1):
=> Send SSL data, 124 bytes (0x7c)
0000: ....c......9..8..5..............3..2../.....f..............c..b.
0040: .a...........@..e..d..`.....................hB.?..Y.....~.b.
== Info: SSLv3, TLS handshake, Server hello (2):
<= Recv SSL data, 74 bytes (0x4a)
0000: ...F..H.....yd|..,.4:|.!......Zy.$..la H....\....}...y..l..b..T
0040: .oK9.+;...
== Info: SSLv3, TLS handshake, CERT (11):
<= Recv SSL data, 2741 bytes (0xab5)
0000: .........T0..P0..........F...0...*.H........0..1.0...U....US1.0.
0040: ..U....Entrust.net1;09..U...2www.entrust.net/CPS incorp. by ref.
0080: (limits liab.)1%0#..U....(c) 1999 Entrust.net Limited1:08..U...
00c0: 1Entrust.net Secure Server Certification Authority0...0801041535
0100: 21Z..090204160520Z0o1.0...U....CA1.0...U....dfsfsfsf.0...U....ci
0140: tyci1.0...U....sss1.0...U....sdfsfdfsfdsf0...U....remote_server.
0180: com0..0...*.H............0........d.oR..d..).........,.....K9|%.
01c0: .>..xh^...iW..sJ.V.e.P......T...Q#..pw..H.S..l.b...vDjG.g.k...nN
0200: ....vhR..a...../.P.<.8...yv...[[.........0...0...U........0+..U.
0240: ..$0"..20080104153521Z..20090204160520Z0...`.H...B......._at_0...U.
0280: %..0...+.......0..h..U. ..._0..[0..W..*.H..}.K.0..H0&..+........
02c0: .http://www.entrust.net/cps0.....+.......0.......The Entrust SSL
0300: Web Server Certification Practice Statement (CPS) available at
0340: www.entrust.net/cps is hereby incorporated into your use or rel
0380: iance on this Certificate. This CPS contains limitations on war
03c0: ranties and liabilities. Copyright (c) 2002 Entrust Limited03..U
0400: ...,0*0(.&.$."http://crl.entrust.net/server1.crl03..+........'0%
0440: 0#..+.....0...http://ocsp.entrust.net0...U.#..0.....b.U=....k.P.
0480: ...b..0...U......5.St.. ."G....1..Y.F0...U....0.0...*.H..}.A...0
04c0: ...V7.1...(0...*.H............v..`....A0u.+B@...H.'.d..A....T.j.
0500: .0.M|.Y..I.-z..........A.X:...ZJF....l%N...f..Q. ..o*...S....0.$
0540: ..':.%M=f..6......`GK.5rcd2.q...T0..P0..........F...0...*.H.....
0580: ...0..1.0...U....US1.0...U....Entrust.net1;09..U...2www.entrust.
05c0: net/CPS incorp. by ref. (limits liab.)1%0#..U....(c) 1999 Entrus
0600: t.net Limited1:08..U...1Entrust.net Secure Server Certification
0640: Authority0...080104153521Z..090204160520Z0o1.0...U....CA1.0...U.
0680: ...dfgdfgg1.0...U....citiyyer0...U....EDS1.0...U....xxxxxxxxxx1.
06c0: 0...U....remote_server0..0...*.H............0........d.oR..d
0700: ..).........,.....K9|%..>..xh^...iW..sJ.V.e.P......T...Q#..pw..H
0740: .S..l.b...vDjG.g.k...nN....vhR..a...../.P.<.8...yv...[[.........
0780: 0...0...U........0+..U...$0"..20080104153521Z..20090204160520Z0.
07c0: ..`.H...B......._at_0...U.%..0...+.......0..h..U. ..._0..[0..W..*.H
0800: ..}.K.0..H0&..+.........http://www.entrust.net/cps0.....+.......
0840: 0.......The Entrust SSL Web Server Certification Practice Statem
0880: ent (CPS) available at www.entrust.net/cps is hereby incorporat
08c0: ed into your use or reliance on this Certificate. This CPS cont
0900: ains limitations on warranties and liabilities. Copyright (c) 20
0940: 02 Entrust Limited03..U...,0*0(.&.$."http://crl.entrust.net/serv
0980: er1.crl03..+........'0%0#..+.....0...http://ocsp.entrust.net0...
09c0: U.#..0.....b.U=....k.P....b..0...U......5.St.. ."G....1..Y.F0...
0a00: U....0.0...*.H..}.A...0...V7.1...(0...*.H............v..`....A0u
0a40: .+B@...H.'.d..A....T.j..0.M|.Y..I.-z..........A.X:...ZJF....l%N.
0a80: ..f..Q. ..o*...S....0.$..':.%M=f..6......`GK.5rcd2.q.
== Info: SSLv3, TLS handshake, Server key exchange (12):
<= Recv SSL data, 397 bytes (0x18d)
0000: .........XNI.. .....6k3l8.E..|...|[-....#.C..[....U..]8.4.|.WC..
0040: .l.3!,.*.<..)@...|...r.......)z.........P..F..=f.]A..|..K".&...^
0080: .U./x......a..4......WZ....U;..+....aK..2*.....bJ.;......G..&.g.
00c0: z..7.z....g......j.......C.B.Y.dh.(.#Qs.=.M@.../..cXx.;.8.......
0100: 3.Q.}..3}i`..V.].....Dp6MX.ln2)..X.....!C..5...T..i.MD.n.jWm7 .
0140: ....{|.p..,...l%....k..6._.O}7[(.V.......U..z....L...B..[.nr.F..
0180: h,......$.F..
== Info: SSLv3, TLS handshake, Request CERT (13):
<= Recv SSL data, 9 bytes (0x9)
0000: .........
== Info: SSLv3, TLS handshake, Server finished (14):
<= Recv SSL data, 4 bytes (0x4)
0000: ....
== Info: SSLv3, TLS handshake, CERT (11):
=> Send SSL data, 7 bytes (0x7)
0000: .......
== Info: SSLv3, TLS handshake, Client key exchange (16):
=> Send SSL data, 134 bytes (0x86)
0000: ......w.....=...Y...cR.Q@..=.<..K.....r.n...,..~........n#J.W.z.
0040: <....x.......].R.;}>....w...K.U...:..^...EJ.#.........sS.M..#...
0080: ...yBD
== 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: ....^..&.-4...H.
== 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: ....,....DK....6
== Info: SSL connection using EDH-RSA-DES-CBC3-SHA
== Info: Server certificate:
== Info: subject:
/C=xx/ST=abcdef/L=city/O=uu/OU=aaaaaaa/CN=remote_server
== Info: start date: 2008-01-04 15:35:21 GMT
== Info: expire date: 2009-02-04 16:05:20 GMT
== Info: common name: remote_server (matched)
== Info: issuer: /C=US/O=Entrust.net/OU=www.entrust.net/CPS
incorp. by ref. (limits liab.)/OU=(c) 1999 Entrust.net
Limited/CN=Entrust.net Secure Server Certification Authority
== Info: SSL certificate verify ok.
<= Recv header, 41 bytes (0x29)
0000: 220-Glub Tech Secure FTP Wrapper v3.0.2
<= Recv header, 50 bytes (0x32)
0000: 220 cwh-tor-unix-010.bpmca.com FTP server ready.
=> Send header, 15 bytes (0xf)
0000: USER username
<= Recv header, 37 bytes (0x25)
0000: 331 Password required for username.
=> Send header, 19 bytes (0x13)
0000: PASS password
<= Recv header, 58 bytes (0x3a)
0000: 230 User username logged in. Access restrictions apply.
=> 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 C
<= Recv header, 51 bytes (0x33)
0000: 200 PROT Command OK. Using Clear data connection.
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 31 bytes (0x1f)
0000: 257 "/" is current directory.
== Info: Entry path is '/'
=> Send header, 6 bytes (0x6)
0000: PASV
== Info: Connect data stream passively
<= Recv header, 50 bytes (0x32)
0000: 227 Entering Passive Mode (remote_ip,90,15)
== Info: Trying remote_ip... == Info: connected
== Info: Connecting to remote_ip (remote_ip) port 23055
=> Send header, 8 bytes (0x8)
0000: TYPE A
<= Recv header, 20 bytes (0x14)
0000: 200 Type set to A.
=> Send header, 19 bytes (0x13)
0000: STOR remote_file
<= Recv header, 58 bytes (0x3a)
0000: 150 Opening ASCII mode data connection for remote_file.
=> Send data, 122 bytes (0x7a)
0000: ************************* CONFIDENTIAL *************************
0040: 31845
=> Send data, 122 bytes (0x7a)
0000: ************************* CONFIDENTIAL *************************
0040:
=> Send data, 122 bytes (0x7a)
0000: ************************* CONFIDENTIAL *************************
0040: 00015000
=> Send data, 122 bytes (0x7a)
0000: ************************* CONFIDENTIAL *************************
0040:
.
.
.
skip
.
.
.
=> Send data, 122 bytes (0x7a)
0000: ************************* CONFIDENTIAL *************************
0040:
== Info: Remembering we are in dir ""
== Info: FTP response timeout
== Info: control connection looks dead
== Info: Closing connection #0
== Info: SSLv3, TLS alert, Client hello (1):
=> Send SSL data, 2 bytes (0x2)
0000: ..

-- End trace section
Received on 2008-05-01