I am using http requests successfully with ChipworkX, but now want to add proxy support. I can’t seem to get it to work though. I’ve also verified my proxy test server is setup correctly by connecting to the internet through with my PC using the same credentials. I’ve also made sure to configure the IP address, gateway and DNS as configured correctly first in the ChipworkX.
Below is my code snippet. Does anyone have experience doing this?
System.Net.WebProxy myProxy = new System.Net.WebProxy("10.9.8.7", 80);
System.Net.NetworkCredential nc = new NetworkCredential("proxyuser", "proxyuser");
HttpWebRequest request = null;
request.Proxy = myProxy;
request.Credentials = nc;
request = (HttpWebRequest)WebRequest.Create(webrequeststring);