get cookie for download url