HttpWebRequest request = (HttpWebRequest)WebRequest.Create("address"); var proxy = new WebProxy("proxy", 8080); proxy.Credentials = new System.Net.NetworkCredential("user", "password", "doamin"); request.Proxy = proxy; request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50215)"; request.Method = "GET"; request.ContentType = "text/html"; using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { //code }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)