简体   繁体   中英

C#: How can I download the file from the GoogleDocs?

Windows 7, .Net 4.5.1. My computer is in the domain. I try to download the dll-file from the GoogleDocs:

WebClient client = new WebClient();
client.Proxy = WebProxy.GetDefaultProxy();
client.Credentials = new NetworkCredential("userName", "password");
client.DownloadFile("https://drive.google.com/file/d/0B7H_2Cq9tBXdWkU0andsR1dWM0U/view?usp=sharing",
  fileName);

But I get an exception with the message:

The remote server returned an error: (407) Proxy Authentication Required.

How can I fix it?

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