[英]C#: How can I download the file from the GoogleDocs?
Windows 7, .Net 4.5.1. Windows 7,.Net 4.5.1。 My computer is in the domain. 我的电脑在域中。 I try to download the dll-file from the GoogleDocs: 我尝试从GoogleDocs下载dll文件:
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. 远程服务器返回错误:(407)需要代理身份验证。
How can I fix it? 我该如何解决?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.