Add cookie support for file download.