bug628796: now include http headers and curl exit code(s) in case of failures, not when successful