Curl: Difference between revisions
m
→One-Liners: m
(→One-Liners: added data raw) |
m (→One-Liners: m) |
||
Line 68:
curl -O https://domain.com/file.zip -O https://domain.com/file2.zip
Download files securely via SSH curl -u user sftp://server.domain.com/path/to/file
curl -u username:password
Get HTTP header information curl -I http://domain.com
Access an FTP server curl ftp://ftp.domain.com --user username:password
Download a file via FTP curl ftp://ftp.domain.com/file.zip --user username:password
curl -u ftpuser:password -O ftp://ftp_pub/public_html/index.html
Upload a file to the FTP server curl -T file.zip ftp://ftp.domain.com/ --user username:password
curl -u ftpuser:password -T linuxtechi.txt ftp://ftp_pub/public_html/
To upload multiple files to FTP
Deleting files from ftp server curl ftp://ftp_pub/public_html -X 'DELE linuxtechi.zip' --user ftpuser:password
Handle URL redirects curl -L http://domain.com
Debug level details curl -v http://domain.com
Using proxy to download a file curl -x proxy.server.com:3128
Limit data transfer rate curl --limit-rate 1024B -O
Download file modified after a given date curl -z 1-Jan-17
Download file modified before a given date curl -z -1-Jan-17
Resume a download curl -C
Verifying SSL certificate curl --cacert new-ca.crt
Ignoring the ssl certificate warning curl -k
=URL syntax=
|