cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTPS Upload Times Out/Fails

From: Matt Warner <matt_at_warnertechnology.com>
Date: Wed, 27 Aug 2008 15:29:32 -0700

I've seen a number of posts regarding FTPS, but I haven't seen a post
that seems to cover this one yet.

With the most recent version of curl and OpenSSL, after many
iterations, I'm trying to use this. It gets me the progress meter,
but zero bytes actually transfer:

curl --ftp-ssl-control --disable-eprt --disable-epsv --insecure -v -T
file.txt "ftps://user:pass_at_remotesite:990/incoming/file.txt"

I do not know which FTP server they're using. However, using --ftp-
ssl with "ftp://" does *not* work, and I have to actually pass -Q
"prot p" for downloads (which seem to work). Now if I could just get
uploads working...

If I leave out "--ftp-ssl-control", I do not even get the progress
meter and it times out.

Any ideas would be greatly appreciated.

Here's an ASCII trace.

= Info: SSLv3, TLS handshake, Finished (20):
<= Recv SSL data, 16 bytes (0x10)
<** omitted **>
== Info: SSL certificate verify result: unable to get local issuer
certificate (20), continuing anyway.
<= Recv header, 210 bytes (0xd2)
0000: 220-You are entering a secure site that may contain proprietary,
0040: confidential, trade secret or privileged information. Any revi
0080: ew, use, disclosure or distribution is prohibited and may be a v
00c0: iolation of law.
<= Recv header, 46 bytes (0x2e)
0000: 220 <**omittedservername**> FTP server starting...
=> Send header, 14 bytes (0xe)
0000: USER <omitted>
<= Recv header, 42 bytes (0x2a)
0000: 331 User 0005367 OK. Password required.
=> Send header, 15 bytes (0xf)
0000: PASS <omitted>
<= Recv header, 20 bytes (0x14)
0000: 230 OK. 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 C
<= Recv header, 51 bytes (0x33)
0000: 200 PROT Command OK. Using Clear data connection.
=> Send header, 5 bytes (0x5)
0000: PWD
<= Recv header, 25 bytes (0x19)
0000: 230 <virtual directory>
=> Send header, 25 bytes (0x19)
0000: CWD <virtual directory>
<= Recv header, 25 bytes (0x19)
0000: 230 <virtual directory>
=> Send header, 6 bytes (0x6)
0000: PASV
== Info: Connect data stream passively
<= Recv header, 46 bytes (0x2e)
0000: 227 Passive mode OK (**Omitted**)
== Info: Trying **omitted**... == Info: connected
== Info: Connecting to *omitted** (**omitted**) port 3049
=> Send header, 8 bytes (0x8)
0000: TYPE I
<= Recv header, 30 bytes (0x1e)
0000: 200 TYPE is now 8-bit binary
=> Send header, 42 bytes (0x2a)
0000: STOR file.txt
<= Recv header, 50 bytes (0x32)
0000: 150 Accepted data connection from **omitted**
=> Send data, 16384 bytes (0x4000)
**data omitted**
== 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)

-------------------------------------------------------------------
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 2008-08-28