VNT

VNT

  • NA
  • 8
  • 0

proxy info

Dec 7 2005 6:41 PM
Hi all, I want to query a website however there is a proxy MyProxy.com.au that I have to go thru. which i have to provide my user login name and password. Because user name and password are the one I logon the computer (and I already logon) So is there anyway that I can bypass or not to provide the username and password to the proxy or query it as I have logon ? CODE: WebProxy proxyObject = null; NetworkCredential sc = null; proxyObject = new WebProxy("MyProxy.com.au"); sc = new NetworkCredential("VNT", "vntpassword"); GlobalProxySelection.Select = proxyObject; proxyObject.Credentials = sc; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Credentials = new NetworkCredential(username, password); HttpWebResponse response = (HttpWebResponse)request.GetResponse();