add an example of downloading with libcurl and a progress bar