i have problem With HttpWebRequest.getResponse(). My try catch don't catch my response :/. Here is code: proxy and ports are good
HttpWebRequest req = (HttpWebRequest)WebRequest.Create("http://www.google.com/");
req.Proxy = new WebProxy(Host, Port);
req.Method = "GET";
req.KeepAlive = false;
req.Timeout = 10000;
req.ContentType = "text/xml";
try
{
using (WebResponse response = req.GetResponse())
{
using (Stream stream = response.GetResponseStream())
{
}
}
}
catch (WebException) { }
catch (Exception){ }
Still getting window with error: https://i.stack.imgur.com/MriAT.jpg