curl -u user:password -O ftp://ftp.server.com/test.txt