I am trying to download a file with https connection in c#.
The url is like https://address/filename&username=xxx&password=xxx.
The C# code I used:
WebRequest myWebRequest = WebRequest.Create(url);
WebResponse myWebResponse = myWebRequest.GetResponse();
However, I got the following error:
Unhandled Exception: System.Net.WebException: The remote server returned an
error: (407) Proxy Authentication Required.
I could open the file in web browser. Also I could get the correct result
using Java.
URLC
【在 w*******u 的大作中提到】 : I am trying to download a file with https connection in c#. : The url is like https://address/filename&username=xxx&password=xxx. : The C# code I used: : WebRequest myWebRequest = WebRequest.Create(url); : WebResponse myWebResponse = myWebRequest.GetResponse(); : However, I got the following error: : Unhandled Exception: System.Net.WebException: The remote server returned an : error: (407) Proxy Authentication Required. : I could open the file in web browser. Also I could get the correct result : using Java.