2008
02.02

cURL is cool

Most folks are quite familiar with wget, which is great. However is does have some shortcommings, cURL does address these. One of the most important of those would be  the possibility to customize the output cURL produces. Which can then be conveniently processed with sed and bc:

curl -w “%{size_download} div %{time_total}\n\n” -s http://www.example.org/testfile  -o /dev/null | sed ’s/div/\//’ | bc

Comments are closed.