Print source of error when upload fails.
Add in https support where we ignore the certificate (our certificate is not
being recognized on the client).