Add better curl error and gzdecode fallback