简体   繁体   中英

Downloading a file using internet explorer credentials in VB.NET

I want to download a file in VB.net from a website that requires credentials, all my users have their credentials to this website saved in their IE settings. Is there a way to download a file from this website using the IE credentials? I'm trying to avoid from asking my users for their credentials.

thanks.

Edit: I need to download many files, so i need a way to download the files programmatically.

just invoke this command from Process.Start:

explorer http://www......

this only works if you have the full url of the file you want to download. In case the default browser is not IE you should replace explorer with iexplore

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM