Se usi windows, includendo urlmon.h puoi usare UrlDownloadToFile