Question about using lftp to connect to connect to ftps://ftp.box.com via http proxy

John Trammell <[email protected]> Tue, 28 Aug 2018 16:55:38 -0500
Newsgroups gmane.network.lftp.user
Message-ID <CAF0y=u9J6j=-kRKpxUER3HsMXcZxUeZNK0QevqUxR1pwg+gTeQ@mail.gmail.com>
--===============0317308725352109846==
Content-Type: multipart/alternative; boundary="000000000000abfb8d057485e76c"

--000000000000abfb8d057485e76c
Content-Type: text/plain; charset="UTF-8"

Good afternoon all,

As the subject line implies, I'm trying to migrate some files to box.com.
There are not a lot of options. DAV is one option; it works but is
deprecated and slow. I can get FTPS to work via curl; command line options
look like this:

curl --user "$BOX_USERNAME:$BOX_PASSWORD" --tlsv1 \

--disable-epsv --show-error --verbose --proxytunnel \

-x $HTTPS_PROXY ftps://ftp.box.com
>

This is much more performant (several orders of magnitude faster than DAV),
but does not apparently allow any recursion, so I can't synch a directory,
just a file.

So here comes my lftp question: I'm trying to duplicate the success I've
had with curl, trying to store one small file. I'm able to connect via
lftp, but get a gnutls_handhake error:

---> STOR smallfile.dat
> <--+ HTTP/1.1 200 OK
> <--+ Connection: Keep-Alive
> <--+
> <--- 150 File status okay; about to open data connection.
> **** gnutls_handshake: The TLS connection was non-properly terminated.
> ---- Closing data socket
> ---- Closing control socket


When I search for this error I see hits pertaining to older versions of lftp
<https://forum.filezilla-project.org/viewtopic.php?t=40051>, but I just
built lftp today, running v4.8.4:

LFTP | Version 4.8.4 | Copyright (c) 1996-2017 Alexander V. Lukyanov

...

Libraries used: Expat 2.1.0, GnuTLS 3.3.26, Readline 6.2, zlib 1.2.7


Any suggestions?

Thanks in advance,
John

--000000000000abfb8d057485e76c
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Good afternoon all,<br clear=3D"all"><div><br></div><div>A=
s the subject line implies, I&#39;m trying to migrate some files to <a href=
=3D"http://box.com">box.com</a>. There are not a lot of options. DAV is one=
 option; it works but is deprecated and slow. I can get FTPS to work via cu=
rl; command line options look like this:</div><div><br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex"><font face=3D"monospace, monospace">cur=
l --user &quot;$BOX_USERNAME:$BOX_PASSWORD&quot; --tlsv1 \</font></blockquo=
te><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord=
er-left:1px solid rgb(204,204,204);padding-left:1ex"><span style=3D"font-fa=
mily:monospace,monospace">--disable-epsv=C2=A0</span><span style=3D"font-fa=
mily:monospace,monospace">--show-error --verbose --proxytunnel \</span></bl=
ockquote><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8e=
x;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style=3D"f=
ont-family:monospace,monospace">-x $HTTPS_PROXY ftps://<a href=3D"http://ft=
p.box.com">ftp.box.com</a></span><br></blockquote><div><br></div><div>This =
is much more performant (several orders of magnitude faster than DAV), but =
does not apparently allow any recursion, so I can&#39;t synch a directory, =
just a file.<br></div><div><br></div><div>So here comes my lftp question: I=
&#39;m trying to duplicate the success I&#39;ve had with curl, trying to st=
ore one small file. I&#39;m able to connect via lftp, but get a gnutls_hand=
hake error:</div><div><br></div><div><blockquote class=3D"gmail_quote" styl=
e=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddin=
g-left:1ex"><font face=3D"monospace, monospace">---&gt; STOR smallfile.dat<=
br>&lt;--+ HTTP/1.1 200 OK<br>&lt;--+ Connection: Keep-Alive<br>&lt;--+<br>=
&lt;--- 150 File status okay; about to open data connection.<br>**** gnutls=
_handshake: The TLS connection was non-properly terminated.<br>---- Closing=
 data socket<br>---- Closing control socket</font></blockquote></div><div><=
br></div><div>When I search for this error I see <a href=3D"https://forum.f=
ilezilla-project.org/viewtopic.php?t=3D40051">hits pertaining to older vers=
ions of lftp</a>, but I just built lftp today, running v4.8.4:</div><div><b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex=
;border-left:1px solid rgb(204,204,204);padding-left:1ex">LFTP | Version 4.=
8.4 | Copyright (c) 1996-2017 Alexander V. Lukyanov</blockquote><blockquote=
 class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px so=
lid rgb(204,204,204);padding-left:1ex">...=C2=A0</blockquote><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">Libraries used: Expat 2.1.0, GnuTLS 3.3=
.26, Readline 6.2, zlib 1.2.7</blockquote><div><br></div><div>Any suggestio=
ns?</div><div><br></div>Thanks in advance,<div>John</div></div>

--000000000000abfb8d057485e76c--

--===============0317308725352109846==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
lftp mailing list
[email protected]
http://univ.uniyar.ac.ru/mailman/listinfo/lftp

--===============0317308725352109846==--