try { HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com"); WebProxy myproxy = new WebProxy("61.183.8.45", 94); myproxy.BypassProxyOnLocal = false; request.Proxy = myproxy; request.Method = "GET"; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); MessageBox.Show(response.StatusCode.ToString()); } catch (Exception) { MessageBox.Show("Could not connect because the proxy server is dead"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)