Checkpoint 13.14.1.
Q-1: The command is short for “copy URL” and command is short for “World Wide Web get.” Both commands are used on Linux computers to retrieve plain text and binary files.
curl
:$ curl -O http://www.py4e.com/cover.jpg
curl
is short for “copy URL” and so the two examples listed earlier to retrieve binary files with urllib
are cleverly named curl1.py
and curl2.py
on www.py4e.com/code3 1 as they implement similar functionality to the curl
command. There is also a curl3.py
sample program that does this task a little more effectively, in case you actually want to use this pattern in a program you are writing.wget
:$ wget http://www.py4e.com/cover.jpg
http://www.py4e.com/code3