curl should fail on unsuccessful downloads.