Download from an FTP server by curl

When downloading data from the Internet, the URL will most likely use the protocols HTTP or HTTPS. To download from an FTP server, which stands for File Transfer Protocol, you use cURL in exactly the same way. When the URL is password protected, you can specify a username and a password as follows:

$ curl -u username:password ftp://host/file
If the specified URL is a directory, curl will list the contents of that directory.

Featured Post

How To Pivot Your <b>Marketing</b> Strategy