Authenticating user credentials before download

Jun 1, 2015 at 2:14 PM
Edited Jun 1, 2015 at 2:15 PM
Hi there,

I can pass uri string to download executable.
Is there a way to send httpwebrequest with cookies to authenticate user credentials before download ?
Does download happen over secure channel eg: SSL ? (I hope it depends on download url.)

Jun 16, 2015 at 5:59 AM
Edited Jun 16, 2015 at 5:59 AM
Currently It downloads the file using DownloadFileAsync. You can do as stated in following article to get the cookie before downloading file.