Curl mac command line options
CURL MAC COMMAND LINE OPTIONS DOWNLOAD
If a download was interrupted for some reason, you can resume it using the option -C - to resume the download beginning where it left off. NOTE: If the FTP server allows anonymous logins, you don't need to use -u username:password Upload fileĬurl emulate a filled-in form where a user has pressed the submit button, using -F option.įor example to POST data using the Content-Type multipart/form-data: $ curl -F Resume an Interrupted Download To upload the file to FTP server use the -T flag: $ curl -T -u USERNAME:PASSWORD
To download the file use: $ curl -u USERNAME:PASSWORD The following command will list all of the files and directories in the user’s home directory. To access a protected FTP server with the curl command you need to use the -u flag with a username and password. To save multiple files using different names, use nested -o option.įor example: $ curl -o file2.pdf localhost/file.pdf -o file3.pdf localhost/file1.pdfĭownload files which has numeric sequence, type: $ curl. įor example: $ curl -O localhost/file.pdf -O localhost/file1.pdf To download multiple files at once, use multiple -O flags followed by the URL of the files. To download a file and save it with a custom name, use -o option.