Check the return codes for most libcurl functions
Check the return codes for most libcurl functions

Also report it as a failure if the download request returns a redirect.

DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon,DaemonEngine/Daemon