filedownload with cookie auth + logging files query