mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 18:18:30 +02:00
Merge branch 'master' of https://github.com/Ashernor/cheat into Ashernor-master
* 'master' of https://github.com/Ashernor/cheat: Adding wget and curl cheats and updating git cheat Conflicts: cheatsheets/curl
This commit is contained in:
@ -1,24 +1,35 @@
|
||||
# Download a file preserving the filename.
|
||||
curl http://example.com/file.zip -O
|
||||
# Download a single file
|
||||
curl http://path.to.the/file
|
||||
|
||||
# Download a file and specify a new filename.
|
||||
# Download a file and specify a new filename
|
||||
curl http://example.com/file.zip -o new_file.zip
|
||||
|
||||
# Fetch only the HTTP headers from a response.
|
||||
curl -I http://example.com
|
||||
# Download multiple files
|
||||
curl -O URLOfFirstFile -O URLOfSecondFile
|
||||
|
||||
# Download all sequentially numbered files (1-24)
|
||||
curl http://example.com/pic[1-24].jpg
|
||||
|
||||
# Download a file from FTP.
|
||||
# Download a file and pass HTTP Authentication
|
||||
curl -u username:password URL
|
||||
|
||||
# Download a file with a Proxy
|
||||
curl -x proxysever.server.com:PORT http://addressiwantto.access
|
||||
|
||||
# Download a file from FTP
|
||||
curl -u username:password -O ftp://example.com/pub/file.zip
|
||||
|
||||
# Get an FTP directory listing.
|
||||
# Get an FTP directory listing
|
||||
curl ftp://username:password@example.com
|
||||
|
||||
# Resume a previously failed download.
|
||||
# Resume a previously failed download
|
||||
curl -C - -o partial_file.zip http://example.com/file.zip
|
||||
|
||||
# Fetch your external IP and network info. as JSON.
|
||||
# Fetch only the HTTP headers from a response
|
||||
curl -I http://example.com
|
||||
|
||||
# Fetch your external IP and network info as JSON
|
||||
curl http://ifconfig.me/all/json
|
||||
|
||||
# Limit the rate of a download
|
||||
curl --limit-rate 1000B -O http://path.to.the/file
|
||||
|
Reference in New Issue
Block a user