can't make otbound connections
-
Hi guys, I'm developing a small site for someone who made the mistake of hosting with GoDaddy. I am unable to make any outbound connections for WebRequest and stuff from Godaddy.
String strResult; WebResponse objResponse; WebRequest objRequest = System.Net.HttpWebRequest.Create("http://www.google.com"); objRequest.Proxy = new WebProxy("https://64.202.165.130:3128"); //objRequest.Proxy = new WebProxy("https://64.202.165.130:3128"); //objRequest.Proxy = new WebProxy("http://wc-v01.inet.mesa1.gdg:3128"); //objRequest.Proxy = new WebProxy("https://wc-v01.inet.mesa1.gdg:3128"); objResponse = objRequest.GetResponse(); // the using keyword will automatically dispose the object // once complete using (StreamReader sr = new StreamReader(objResponse.GetResponseStream())) { strResult = sr.ReadToEnd(); // Close and clean up the StreamReader sr.Close(); } Response.Write(strResult);
I used that code to test f I could make outbound connections. On my IIS it worked fine but when I uploaded it gave "Could not connect kind of error". I did comment out all the Proxy code when I ran it on my IIS. GoDaddy has a Proxy server. I've tried all combinations to make it work but it doesn't. GoDaddy claims its a coding error. Is there a simpler code to test whether I ca n make outbound connections froma particular server or something.