a downloader writen in C using curl