Curl Command
Curl Command
Introduction
• cURL is a software package which consists of
command line tool
• a library for transferring data using URL syntax.
• # curl http://www.google.com
• # curl –L http://www.google.com
Continue/Resume a Previous Download
• Using curl -C option, we can continue a download
which was stopped already for some reason.
• This will be helpful when we download large files,
and the download got interrupted.
• If we say ‘-C -‘, then curl will find from where to
start resuming the download.
• We can also give an offset ‘-C <offset>’. The given
offset bytes will be skipped from the beginning for
the source file.
• Start a big download using curl, and press Ctrl-C to
stop it in between the download.
• # curl –O url_name
• # curl –C - -O url_name
Limit the Rate of Data Transfer
• # curl dict://dict.org/d:bash
• # curl dict://dict.org/d:bash:foldoc