How do I tell curl to run custom FTP commands?
You can tell curl to perform optional commands both before and/or after a file transfer. Study the -Q/–quote option. Since curl is used for file transfers, you don’t use curl to just perform FTP commands without transferring anything. Therefore you must always specify a URL to transfer to/from even when doing custom FTP commands.