Proxyサーバーの検証

作成したProxyサーバーの動作検証の為にC#でテストプログラムを作成

System.Net.WebClient wc = new System.Net.WebClient();
wc.Proxy = new System.Net.WebProxy("http://192.9.200.123:8080");
wc.Proxy.Credentials = new System.Net.NetworkCredential("test2", "test");
string source = wc.DownloadString("https://www.google.co.jp");
Console.WriteLine(source);
wc.Dispose();

参考にしたサイト