How can I download file from a website need authentication

S

Sam

Hello everyone, WebClient object works very well with the
no-need-to-authentication website. Can it also work also with authentication
website? Thanks in advance. Sam
 
J

Justin Rogers

WebClient.Credentials property accepts an ICredentials. You can grab creds
out of the CredentialsCache or you can simply create a user/pass or
user/pass/domain combo and use the NetworkCredentials class. That way you
can prompt users for their authentication information.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top