这是我目前拥有的代码
using (WebClient client = new WebClient()) {
WebProxy proxy = new WebProxy();
proxy.Address = new Uri(96.44.147.138:6060);
proxy.Credentials = new NetworkCredential(proxyUsername.Text, proxyPassword.Text);
proxy.UseDefaultCredentials = false;
proxy.BypassProxyOnLocal = false;
Console.WriteLine(client.DownloadString("http://bot.whatismyipaddress.com/"));
}
代理需要凭据。
我在网上收到一条错误proxy.Address = new Uri(96.44.147.138:6060);
消息
“URI 方案无效。”
不确定它期望什么样的价值