[Curl] Cookies are sometimes not set in download request.