On Tue, Feb 9, 2021 at 12:08 PM Michael Barnes <[email protected]> wrote:
> I use a program that uses curl to automate ftp file transfers. The problem > I have run into is the username for the ftp account is an email address ( > [email protected]). When I enter the information in the window to edit the > downloads, I put in the host information, then in the user box, I put > [email protected]. Unfortunately, the download failed. It was suggested to > escape the @, so I tried user\@host.com, but the program did not accept > the \. When I typed it, it just didn't show up. > > So, any curl experts out there can help me put the @ in the username? > > Thanks, > Michael > > After some more testing, I think I found the problem. It wasn't in the username after all. The host is using FTP over TLS, so I need to use ftps. That gives me a command line of curl -u [email protected]:password ftps://hostname.com/path/file.mp3 which eventually times out with the error "curl: (7) Failed connect to hostname.com:990; Connection timed out" I then discovered that there are two modes of FTP over TLS. There is explicit using port 21 and implicit on port 990. After testing with Filezilla, I find that explicit works and implicit does not. Now I need a way to get curl to use port 21 instead of 990. Thanks for any ideas. Michael _______________________________________________ PLUG: https://pdxlinux.org PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
